public class PersistentCache extends Object
ReferenceMap with weak keys to avoid out-of-memory errors.| Modifier and Type | Method and Description |
|---|---|
static void |
clearCache()
clearCache
|
static PersistentCache |
createInstance(String cachePath)
createInstance
|
boolean |
deleteCache()
deleteCache
|
Object |
get(Object key)
get
|
static PersistentCache |
instance()
instance (call createInstance(.) once before!)
|
static boolean |
isCreated()
isCreated
|
Object |
put(Object key,
Object value) |
Object |
remove(Object key) |
public static final PersistentCache instance()
public static PersistentCache createInstance(String cachePath)
cachePath - path without file namepublic static boolean isCreated()
public boolean deleteCache()
public static void clearCache()
Copyright © 2012–2018. All rights reserved.