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;

/**
 * CacheStrategy.java.
 * 

* This interface will be implemented by all classes which will support a * caching strategy. * * @author Alex Objelean * @created Created on Nov 18, 2008 */ 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 - 2024 Weber Informatics LLC | Privacy Policy