Constructor and Description |
---|
ApiEhcache() |
Modifier and Type | Method and Description |
---|---|
void |
clear()
Removes all items in the cache.
|
boolean |
containsKey(String key)
Checks whether or not an object has previously been stored in the cache
|
void |
destroy()
Closes the cache.
|
void |
flush() |
Object |
get(String key)
Workaround to avoid NPE after a full reload (/adapterHandlerAsAdmin.do?action=fullreload)
get() and isKeyInCache() are not synchronized methods and do not contain any state checking.
|
void |
put(String key,
Object value)
Place an object in the cache
|
void |
put(String key,
Object value,
int ttl)
Place an object in the cache
|
boolean |
remove(String key)
Remove an object from the cache
|
void |
setDiskPersistent(boolean diskPersistent) |
void |
setEternal(boolean eternal) |
void |
setMaxElementsOnDisk(int maxElementsOnDisk) |
void |
setOverflowToDisk(boolean overflowToDisk) |
public void destroy()
IApiCache
public Object get(String key)
public void put(String key, Object value)
IApiCache
public void put(String key, Object value, int ttl)
IApiCache
public boolean remove(String key)
IApiCache
public boolean containsKey(String key)
IApiCache
containsKey
in interface IApiCache
key
- name of the object to findpublic void flush()
public void clear()
IApiCache
public void setEternal(boolean eternal)
public void setOverflowToDisk(boolean overflowToDisk)
public void setMaxElementsOnDisk(int maxElementsOnDisk)
public void setDiskPersistent(boolean diskPersistent)
Copyright © 2023 Frank!Framework. All rights reserved.