public class RestClientCacheService extends Object implements CacheService
Modifier and Type | Method and Description |
---|---|
static RestClientCacheService |
create(String name,
String baseUrl,
String[] credentials,
info.magnolia.rest.client.factory.RestClientFactory restClientFactory) |
void |
delete(String cacheName,
String cacheKey) |
String |
getAllKeys(String cacheName) |
com.fasterxml.jackson.databind.JsonNode |
getCacheContent(String cacheName,
String cacheKey) |
com.fasterxml.jackson.databind.JsonNode |
getCacheSize(String cacheName) |
String |
getKeys(String cacheName,
int offset,
int pageLength,
String sortOrder,
String sortProperty) |
String |
ping() |
public static RestClientCacheService create(String name, String baseUrl, String[] credentials, info.magnolia.rest.client.factory.RestClientFactory restClientFactory)
public String ping() throws CacheServiceException
ping
in interface CacheService
CacheServiceException
public String getAllKeys(String cacheName) throws CacheServiceException
getAllKeys
in interface CacheService
CacheServiceException
public String getKeys(String cacheName, int offset, int pageLength, String sortOrder, String sortProperty) throws CacheServiceException
getKeys
in interface CacheService
CacheServiceException
public com.fasterxml.jackson.databind.JsonNode getCacheSize(String cacheName) throws CacheServiceException
getCacheSize
in interface CacheService
CacheServiceException
public com.fasterxml.jackson.databind.JsonNode getCacheContent(String cacheName, String cacheKey) throws CacheServiceException
getCacheContent
in interface CacheService
CacheServiceException
public void delete(String cacheName, String cacheKey) throws CacheServiceException
delete
in interface CacheService
CacheServiceException
Copyright © 2021 Magnolia International Ltd.. All rights reserved.