@Component public class ContextualImageDeliveryAdministrator extends Object implements TransformationCacheAdministrator
The Contextual Image Delivery Administrator is used for administration actions on the Contextual Image Delivery module.
You can obtain the Contextual Image Delivery (CID) Administrator using the getInstance()
method.
For example, to remove all cache entries:
ContextualImageDeliveryAdministrator.getInstance().remove();
To get the number of items in the in-memory cache:
long inMemoryCacheSize = ContextualImageDeliveryAdministrator.getInstance().getStatistics().getLocalHeapSize();
Constructor and Description |
---|
ContextualImageDeliveryAdministrator() |
Modifier and Type | Method and Description |
---|---|
static ContextualImageDeliveryAdministrator |
getInstance()
Get the Contextual Image Delivery (CID) Administrator.
|
CacheStatistics |
getStatistics()
Gets the cache statistics for the underlying cache.
|
void |
remove(String uriRegexAsString)
Remove transformations which were generated from sources URLs matching the given string as a regex.
|
void |
removeAll()
Remove all the items inside the transformation caches completely.
|
public ContextualImageDeliveryAdministrator()
public static ContextualImageDeliveryAdministrator getInstance()
public void removeAll()
removeAll
in interface TransformationCacheAdministrator
public void remove(String uriRegexAsString)
remove
in interface TransformationCacheAdministrator
public CacheStatistics getStatistics()
getStatistics
in interface TransformationCacheAdministrator
Copyright (c) 2014-2021 All Rights Reserved by the RWS Group for and on behalf of its affiliates and subsidiaries