Package | Description |
---|---|
info.magnolia.module.cache | |
info.magnolia.module.cache.cachepolicy | |
info.magnolia.module.cache.flushpolicy |
Modifier and Type | Class and Description |
---|---|
class |
AbstractListeningFlushPolicy
Implemenation of the
FlushPolicy providing functionality for triggering flush operation based on changes in observed workspaces. |
class |
DelegateFlushPolicy
Simple policy that delegates all the requests to any policies added in its policies list.
|
class |
FlushAllListeningPolicy
Simple flush policy that will empty whole cache in case of updates.
|
Modifier and Type | Method and Description |
---|---|
FlushPolicy |
ContentCachingConfiguration.getFlushPolicy() |
Modifier and Type | Method and Description |
---|---|
List<FlushPolicy> |
DelegateFlushPolicy.getPolicies() |
Modifier and Type | Method and Description |
---|---|
void |
DelegateFlushPolicy.addPolicy(FlushPolicy policy) |
void |
ContentCachingConfiguration.setFlushPolicy(FlushPolicy flushPolicy) |
CachePolicyResult |
CachePolicy.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.
|
Modifier and Type | Method and Description |
---|---|
void |
DelegateFlushPolicy.setPolicies(List<FlushPolicy> policies) |
Modifier and Type | Method and Description |
---|---|
CachePolicyResult |
Default.shouldCache(Cache cache,
info.magnolia.cms.core.AggregationState aggregationState,
FlushPolicy flushPolicy) |
CachePolicyResult |
Never.shouldCache(Cache cache,
info.magnolia.cms.core.AggregationState aggregationState,
FlushPolicy flushPolicy) |
Modifier and Type | Class and Description |
---|---|
class |
LightModuleChangesFlushPolicy
Simple flush policy that will empty whole cache in case of file system origin changes.
|
Copyright © 2020 Magnolia International Ltd.. All rights reserved.