|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectrailo.runtime.cache.CacheSupport
railo.runtime.cache.eh.EHCacheSupport
railo.runtime.cache.eh.EHCacheLite
public class EHCacheLite
Field Summary |
---|
Fields inherited from interface railo.commons.io.cache.Cache |
---|
DEFAULT_CACHE_NAME |
Constructor Summary | |
---|---|
EHCacheLite()
|
Method Summary | |
---|---|
static void |
flushAllCaches()
|
CacheEntry |
getCacheEntry(String key)
return cache entry that match the key, throws a CacheException when entry does not exists or is stale |
CacheEntry |
getCacheEntry(String key,
CacheEntry defaultValue)
return cache entry that match the key or the defaultValue when entry does not exist |
Object |
getValue(String key)
return value that match the key, throws a CacheException when entry does not exists or is stale |
Object |
getValue(String key,
Object defaultValue)
return value that match the key or the defaultValue when entry does not exist |
long |
hitCount()
how many time was the cache accessed? this information is optional and depends on the implementation, when information is not available -1 is returned |
static void |
init(Config config,
String[] cacheNames,
Struct[] arguments)
|
void |
init(Config config,
String cacheName,
Struct arguments)
|
void |
init(String cacheName,
Struct arguments)
initialize the cache |
long |
missCount()
how many time was the cache accessed for a record that does not exist? this information is optional and depends on the implementation, when information is not available -1 is returned |
void |
remove()
|
boolean |
remove(String key)
remove entry that match this key |
Methods inherited from class railo.runtime.cache.eh.EHCacheSupport |
---|
contains, getCustomInfo, getQuiet, getQuiet, keys, put, register |
Methods inherited from class railo.runtime.cache.CacheSupport |
---|
entries, entries, entries, keys, keys, remove, remove, values, values, values |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface railo.commons.io.cache.Cache |
---|
entries, entries, entries, keys, keys, remove, remove, values, values, values |
Constructor Detail |
---|
public EHCacheLite()
Method Detail |
---|
public static void init(Config config, String[] cacheNames, Struct[] arguments) throws IOException
IOException
public static void flushAllCaches()
public void init(String cacheName, Struct arguments) throws IOException
Cache
cacheName
- arguments
- configuration arguments
IOException
railo.commons.io.cache.Cache#init(railo.runtime.type.Struct)
public void init(Config config, String cacheName, Struct arguments)
public boolean remove(String key)
Cache
Cache.remove(String)
public CacheEntry getCacheEntry(String key) throws CacheException
Cache
getCacheEntry
in interface Cache
getCacheEntry
in class CacheSupport
key
- key of the cache entry to get
CacheException
Cache.getCacheEntry(java.lang.String)
public CacheEntry getCacheEntry(String key, CacheEntry defaultValue)
Cache
key
- key of the cache entry to get
public Object getValue(String key) throws CacheException
Cache
getValue
in interface Cache
getValue
in class CacheSupport
key
- key of the value to get
CacheException
Cache.getValue(String)
public Object getValue(String key, Object defaultValue)
Cache
getValue
in interface Cache
getValue
in class CacheSupport
key
- key of the value to get
Cache.getValue(String, java.lang.Object)
public long hitCount()
Cache
Cache.hitCount()
public long missCount()
Cache
Cache.missCount()
public void remove()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |