public interface CacheableService extends LuteceService
Modifier and Type | Method and Description |
---|---|
void |
enableCache(boolean bEnable)
Enable the cache
|
int |
getCacheSize()
Gets the number of item currently in the cache.
|
String |
getInfos()
Returns cache infos
|
List<String> |
getKeys()
Gets all keys in the cache
|
int |
getMaxElements()
Returns maximum elements accepted into the cache
|
long |
getMemorySize()
Return the memory size
|
long |
getTimeToLive()
Returns the time to live for objects in the cache
|
boolean |
isCacheEnable()
Gets the current cache status.
|
void |
resetCache()
Reset the cache.
|
getName
boolean isCacheEnable()
int getCacheSize()
void resetCache()
void enableCache(boolean bEnable)
bEnable
- true to enable, false to disableint getMaxElements()
long getTimeToLive()
long getMemorySize()
String getInfos()
Copyright © 2020 City of Paris. All rights reserved.