|
||||||||||
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.ram.RamCache
public class RamCache
Nested Class Summary | |
---|---|
static class |
RamCache.Controler
|
Field Summary |
---|
Fields inherited from interface railo.commons.io.cache.Cache |
---|
DEFAULT_CACHE_NAME |
Constructor Summary | |
---|---|
RamCache()
|
Method Summary | |
---|---|
boolean |
contains(String key)
check if there is a entry inside the cache that match the given key |
CacheEntry |
getCacheEntry(String key,
CacheEntry defaultValue)
return cache entry that match the key or the defaultValue when entry does not exist |
CacheEntry |
getQuiet(String key,
CacheEntry defaultValue)
|
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 |
void |
init(Cache cache,
String cacheName,
Struct arguments)
|
static void |
init(Config config,
String[] cacheNames,
Struct[] arguments)
|
void |
init(String cacheName,
Struct arguments)
initialize the cache |
List |
keys()
Returns a List of the keys contained in this 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 |
put(String key,
Object value,
Long idleTime,
Long until)
puts a cache entry to the cache, overwrite existing entries that already exists inside the cache with the same key |
boolean |
remove(String key)
remove entry that match this key |
Methods inherited from class railo.runtime.cache.CacheSupport |
---|
entries, entries, entries, getCacheEntry, getCustomInfo, getQuiet, getValue, getValue, keys, keys, remove, remove, values, values, values |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RamCache()
Method Detail |
---|
public static void init(Config config, String[] cacheNames, Struct[] arguments)
public void init(Cache cache, String cacheName, Struct arguments) throws IOException
IOException
public void init(String cacheName, Struct arguments) throws IOException
Cache
arguments
- configuration arguments
IOException
public boolean contains(String key)
Cache
Cache.contains(java.lang.String)
public CacheEntry getQuiet(String key, CacheEntry defaultValue)
getQuiet
in class CacheSupport
public CacheEntry getCacheEntry(String key, CacheEntry defaultValue)
Cache
key
- key of the cache entry to get
Cache.getCacheEntry(java.lang.String, railo.commons.io.cache.CacheEntry)
public long hitCount()
Cache
Cache.hitCount()
public long missCount()
Cache
Cache.missCount()
public List keys()
Cache
public void put(String key, Object value, Long idleTime, Long until)
Cache
public boolean remove(String key)
Cache
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |