Class LibObjectCache
- java.lang.Object
-
- com.mclarkdev.tools.libobjectcache.LibObjectCache
-
public class LibObjectCache extends Object
-
-
Constructor Summary
Constructors Constructor Description LibObjectCache(String name)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclearCache()intcount()intexpireOldObjects()LibObjectCacheCachedObjectget(String key)static LibObjectCachegetCache(String name)ConcurrentHashMap.KeySetView<String,LibObjectCacheCachedObject>getKeys()StringgetName()voidput(String key, LibObjectCacheCachedObject value)LibObjectCacheCachedObjectremove(String key)
-
-
-
Constructor Detail
-
LibObjectCache
public LibObjectCache(String name)
-
-
Method Detail
-
getName
public String getName()
-
put
public void put(String key, LibObjectCacheCachedObject value)
-
count
public int count()
-
expireOldObjects
public int expireOldObjects()
-
get
public LibObjectCacheCachedObject get(String key)
-
getKeys
public ConcurrentHashMap.KeySetView<String,LibObjectCacheCachedObject> getKeys()
-
remove
public LibObjectCacheCachedObject remove(String key)
-
clearCache
public void clearCache()
-
getCache
public static LibObjectCache getCache(String name)
-
-