P
- type of ParameterProvider's parameterpublic class NullCachingStrategy<P> extends Object implements CachingStrategy<P>
CachingStrategy
implementation that will ... never cache !Constructor and Description |
---|
NullCachingStrategy() |
Modifier and Type | Method and Description |
---|---|
String |
getCachePath(ImageGenerator<ParameterProvider<P>> parameterProviderImageGenerator,
ParameterProvider<P> parameterProvider)
Returns a unique path pertinent to the given generator and parameter to use for storing
the generated image.
|
boolean |
shouldRegenerate(info.magnolia.cms.core.NodeData cachedBinary,
ParameterProvider<P> parameterProvider)
Given the currently cached generated image, determine if CachingImageStreamer should
regenerate the image.
|
public String getCachePath(ImageGenerator<ParameterProvider<P>> parameterProviderImageGenerator, ParameterProvider<P> parameterProvider)
CachingStrategy
getCachePath
in interface CachingStrategy<P>
public boolean shouldRegenerate(info.magnolia.cms.core.NodeData cachedBinary, ParameterProvider<P> parameterProvider)
CachingStrategy
shouldRegenerate
in interface CachingStrategy<P>
Copyright © 2015 Magnolia International Ltd.. All rights reserved.