public interface CachePolicy
Modifier and Type | Method and Description |
---|---|
info.magnolia.voting.voters.VoterSet<CacheResponseWrapper> |
getTtlVoters() |
void |
persistCacheKey(String repo,
String uuid,
Object key)
Persists mapping between uuid and cache key in case the given cache policy implementation cares about such details.
|
Object[] |
removeCacheKeys(String uuid,
String repository)
Returns cache keys for the given item or null if such keys can't be obtained or policy doesn't want to share it.
|
Object |
retrieveCacheKey(info.magnolia.cms.core.AggregationState aggregationState)
Returns cache key for the given item or null if such key can't be obtained or policy doesn't want to share it.
|
Object[] |
retrieveCacheKeys(String uuid,
String repository)
Returns cache keys for the given item or null if such keys can't be obtained or policy doesn't want to share it.
|
CachePolicyResult |
shouldCache(Cache cache,
info.magnolia.cms.core.AggregationState aggregationState,
FlushPolicy flushPolicy)
Implementations can chose whether to cache or not - but note that the
aggregationState might not be completely populated.
|
CachePolicyResult shouldCache(Cache cache, info.magnolia.cms.core.AggregationState aggregationState, FlushPolicy flushPolicy)
Object retrieveCacheKey(info.magnolia.cms.core.AggregationState aggregationState)
Object[] retrieveCacheKeys(String uuid, String repository)
void persistCacheKey(String repo, String uuid, Object key)
Object[] removeCacheKeys(String uuid, String repository)
info.magnolia.voting.voters.VoterSet<CacheResponseWrapper> getTtlVoters()
Copyright © 2015 Magnolia International Ltd.. All rights reserved.