railo.runtime.cache.eh
Class EHCacheSupport
java.lang.Object
railo.runtime.cache.CacheSupport
railo.runtime.cache.eh.EHCacheSupport
- All Implemented Interfaces:
- Cache, CacheEvent
- Direct Known Subclasses:
- EHCache, EHCacheLite
public abstract class EHCacheSupport
- extends CacheSupport
- implements Cache, CacheEvent
Methods inherited from class railo.runtime.cache.CacheSupport |
entries, entries, entries, getCacheEntry, getValue, getValue, keys, keys, remove, remove, values, values, values |
Methods inherited from interface railo.commons.io.cache.Cache |
entries, entries, entries, getCacheEntry, getCacheEntry, getValue, getValue, hitCount, init, keys, keys, missCount, remove, remove, remove, values, values, values |
EHCacheSupport
public EHCacheSupport()
register
public void register(CacheEventListener listener)
- Description copied from interface:
CacheEvent
- allows to register a CacheEventListener for one or more certain events
- Specified by:
register
in interface CacheEvent
- See Also:
CacheEvent.register(railo.commons.io.cache.CacheEventListener)
contains
public boolean contains(String key)
- Description copied from interface:
Cache
- check if there is a entry inside the cache that match the given key
- Specified by:
contains
in interface Cache
- Returns:
- contains a value that match this key
- See Also:
Cache.contains(String)
getCustomInfo
public Struct getCustomInfo()
- Description copied from interface:
Cache
- get all information data available for this cache
- Specified by:
getCustomInfo
in interface Cache
- Overrides:
getCustomInfo
in class CacheSupport
- See Also:
Cache.getCustomInfo()
keys
public List keys()
- Description copied from interface:
Cache
- Returns a List of the keys contained in this cache.
The set is NOT backed by the cache, so changes to the cache are NOT reflected in the set, and vice-versa.
- Specified by:
keys
in interface Cache
- Returns:
- a set of the keys contained in this cache.
- See Also:
Cache.keys()
put
public void put(String key,
Object value,
Long idleTime,
Long liveTime)
- Description copied from interface:
Cache
- puts a cache entry to the cache, overwrite existing entries that already exists inside the cache with the same key
- Specified by:
put
in interface Cache
- See Also:
Cache.put(String, java.lang.Object, java.lang.Long, java.lang.Long)
getQuiet
public CacheEntry getQuiet(String key,
CacheEntry defaultValue)
- Specified by:
getQuiet
in class CacheSupport
getQuiet
public CacheEntry getQuiet(String key)
- Overrides:
getQuiet
in class CacheSupport
Copyright © 2012 Railo