Class ExpirableCache<K,V>

java.lang.Object
edu.internet2.middleware.grouperClient.util.ExpirableCache<K,V>
edu.internet2.middleware.subject.util.ExpirableCache<K,V>
Type Parameters:
K - key type
V - value type
All Implemented Interfaces:
Serializable

@Deprecated public class ExpirableCache<K,V> extends ExpirableCache<K,V>
Deprecated.
use edu.internet2.middleware.grouperClient.util.ExpirableCache
This is like a map, but the setters also take an expire time which will mean the items in the cache will be automatically deleted. Also, every so often (e.g. 2 minutes) all items are checked for expiration. If no timetolive is set, it will default to 1 day. The max time to live is one day. This is synchronized so that all access is safe.

Note, evictions are check for periodically, but only when the map is accessed (and even then only every few minutes). so you can check for evictions externally, or clear the map if you are done with it.

Version:
$Id$
See Also:
  • Constructor Details

    • ExpirableCache

      public ExpirableCache()
      Deprecated.
    • ExpirableCache

      public ExpirableCache(ExpirableCache.ExpirableCacheUnit expirableCacheUnit, int defaultTimeToLive)
      Deprecated.
    • ExpirableCache

      public ExpirableCache(int defaultTimeToLiveInMinutes)
      Deprecated.