public interface PayloadCacheProvider
| Modifier and Type | Method and Description |
|---|---|
void |
addDependency(String cacheKey,
String dependencyKey)
Adds a dependency between two cache keys
|
<T> CacheElement<T> |
loadPayloadFromLocalCache(String key)
Loads object corresponding to the given key from cache.
|
<T> void |
storeInItemCache(String key,
CacheElement<T> cacheElement)
Store given item in the cache with a simple time-to-live property (for items not depending on Tridion items)
|
<T> void |
storeInItemCache(String key,
CacheElement<T> cacheElement,
int dependingPublicationId,
int dependingItemId)
Store given item in the cache with a reference to supplied Tridion Item.
|
<T> void |
storeInItemCache(String key,
CacheElement<T> cacheElement,
List<CacheDependency> dependencies)
Stores item in the cache with a reference to all given depdencies
|
<T> CacheElement<T> loadPayloadFromLocalCache(String key)
key - String representing the name under which the object is stored in the cache<T> void storeInItemCache(String key, CacheElement<T> cacheElement)
key - String representing the name under which the object is stored in the cachecacheElement - CacheElement representing wrapper around the actual payload to store in cache<T> void storeInItemCache(String key, CacheElement<T> cacheElement, int dependingPublicationId, int dependingItemId)
key - String representing the name under which the object is stored in the cachecacheElement - CacheElement representing wrapper around the actual payload to store in cachedependingPublicationId - int representing the Publication id of the Tridion item the cacheItem depends ondependingItemId - int representing the Item id of the Tridion item the cacheItem depends on<T> void storeInItemCache(String key, CacheElement<T> cacheElement, List<CacheDependency> dependencies)
key - String representing the name under which the object is stored in the cachecacheElement - CacheElement representing wrapper around the actual payload to store in cachedependencies - List of CacheDependency objects, representing the dependencies for this itemvoid addDependency(String cacheKey, String dependencyKey)
cacheKey - String representing the key of the cache item that will flush if the other item flushesdependencyKey - String representing the key of the cache item that will act as a dependencyCopyright © 2017. All rights reserved.