ro.isdc.wro.cache.impl.NoCacheStrategy Maven / Gradle / Ivy
package ro.isdc.wro.cache.impl;
import ro.isdc.wro.cache.CacheStrategy;
/**
* Dummy cache strategy implementation to totaly disable cache
*
* @author Philippe Da Costa <[email protected]>
* @since 1.7.9
* @created 28 Sep 2015
*/
public class NoCacheStrategy
implements CacheStrategy {
public static final String ALIAS = "nocache";
public void put(final CacheKey key, final CacheValue value) {
// Nothing to do because we are a no cache implementation
}
public CacheValue get(final CacheKey key) {
return null;
}
public void clear() {
// Nothing to do
}
public void destroy() {
// Nothing to do
}
}