All Downloads are FREE. Search and download functionalities are using the official Maven repository.

ro.isdc.wro.cache.impl.NoCacheStrategy Maven / Gradle / Ivy

There is a newer version: 2.1.1
Show newest version
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
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy