railo.runtime.cache.eh
Class EHCacheSupport

java.lang.Object
  extended by railo.runtime.cache.CacheSupport
      extended by railo.runtime.cache.eh.EHCacheSupport
All Implemented Interfaces:
Cache, CacheEvent
Direct Known Subclasses:
EHCache, EHCacheLite

public abstract class EHCacheSupport
extends CacheSupport
implements Cache, CacheEvent


Constructor Summary
EHCacheSupport()
           
 
Method Summary
 boolean contains(String key)
          check if there is a entry inside the cache that match the given key
 Struct getCustomInfo()
          get all information data available for this cache
 CacheEntry getQuiet(String key)
           
 CacheEntry getQuiet(String key, CacheEntry defaultValue)
           
 List keys()
          Returns a List of the keys contained in this cache.
 void put(String key, Object value, Long idleTime, Long liveTime)
          puts a cache entry to the cache, overwrite existing entries that already exists inside the cache with the same key
 void register(CacheEventListener listener)
          allows to register a CacheEventListener for one or more certain events
 
Methods inherited from class railo.runtime.cache.CacheSupport
entries, entries, entries, getCacheEntry, 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
 
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
 

Constructor Detail

EHCacheSupport

public EHCacheSupport()
Method Detail

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

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

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

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.

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

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