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

ro.isdc.wro.cache.CacheStrategy Maven / Gradle / Ivy

There is a newer version: 2.1.1
Show newest version
/*
 * Copyright (c) 2008. All rights reserved.
 */
package ro.isdc.wro.cache;

/**
 * This interface will be implemented by all classes which will support a
 * caching strategy.
 *
 * @author Alex Objelean
 */
public interface CacheStrategy {
  /**
   * Put a value in the cache using a key.
   *
   * @param key
   *          Object.
   * @param value
   *          Object.
   */
  void put(final K key, final V value);

  /**
   * Restore a value from the cache.
   *
   * @param key
   *          Object
   * @return value Object.
   */
  V get(final K key);

  /**
   * Clear all cache contents.
   */
  void clear();

  /**
   * Perform the clean up.
   */
  void destroy();

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy