|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectrailo.runtime.cache.CacheSupport
public abstract class CacheSupport
Field Summary |
---|
Fields inherited from interface railo.commons.io.cache.Cache |
---|
DEFAULT_CACHE_NAME |
Constructor Summary | |
---|---|
CacheSupport()
|
Method Summary | |
---|---|
List |
entries()
Returns a List of entries containing in this cache Each element in the returned list is a CacheEntry. |
List |
entries(CacheEntryFilter filter)
Returns a list of entries containing in this cache that match the given filter. |
List |
entries(CacheKeyFilter filter)
Returns a list of entries containing in this cache that match the given filter. |
CacheEntry |
getCacheEntry(String key)
return cache entry that match the key, throws a CacheException when entry does not exists or is stale |
Struct |
getCustomInfo()
get all information data available for this cache |
CacheEntry |
getQuiet(String key)
|
abstract CacheEntry |
getQuiet(String key,
CacheEntry defaultValue)
|
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 |
List |
keys(CacheEntryFilter filter)
Returns a List of the keys contained in this cache that match the given filter. |
List |
keys(CacheKeyFilter filter)
Returns a List of the keys contained in this cache that match the given filter. |
int |
remove(CacheEntryFilter filter)
remove all entries that match the given filter |
int |
remove(CacheKeyFilter filter)
remove all entries that match the given filter |
List |
values()
Returns a List of values containing in this cache. |
List |
values(CacheEntryFilter filter)
Returns a list of values containing in this cache that match the given filter. |
List |
values(CacheKeyFilter filter)
Returns a list of values containing in this cache that match the given filter. |
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 |
---|
contains, getCacheEntry, hitCount, init, keys, missCount, put, remove |
Constructor Detail |
---|
public CacheSupport()
Method Detail |
---|
public List keys(CacheKeyFilter filter)
Cache
keys
in interface Cache
Cache.keys(railo.commons.io.cache.CacheKeyFilter)
public List keys(CacheEntryFilter filter)
Cache
keys
in interface Cache
Cache.keys(railo.commons.io.cache.CacheEntryFilter)
public List entries()
Cache
entries
in interface Cache
Cache.entries()
public List entries(CacheKeyFilter filter)
Cache
entries
in interface Cache
Cache.entries(railo.commons.io.cache.CacheKeyFilter)
public List entries(CacheEntryFilter filter)
Cache
entries
in interface Cache
Cache.entries(railo.commons.io.cache.CacheEntryFilter)
public List values()
Cache
values
in interface Cache
Cache.values()
public List values(CacheEntryFilter filter)
Cache
values
in interface Cache
Cache.values(railo.commons.io.cache.CacheEntryFilter)
public List values(CacheKeyFilter filter)
Cache
values
in interface Cache
Cache.values(railo.commons.io.cache.CacheKeyFilter)
public int remove(CacheEntryFilter filter)
Cache
remove
in interface Cache
Cache.remove(railo.commons.io.cache.CacheEntryFilter)
public int remove(CacheKeyFilter filter)
Cache
remove
in interface Cache
Cache.remove(railo.commons.io.cache.CacheKeyFilter)
public Struct getCustomInfo()
Cache
getCustomInfo
in interface Cache
public Object getValue(String key) throws IOException
Cache
getValue
in interface Cache
key
- key of the value to get
IOException
Cache.getValue(java.lang.String)
public Object getValue(String key, Object defaultValue)
Cache
getValue
in interface Cache
key
- key of the value to get
Cache.getValue(java.lang.String, java.lang.Object)
public CacheEntry getCacheEntry(String key) throws IOException
Cache
getCacheEntry
in interface Cache
key
- key of the cache entry to get
IOException
Cache.getCacheEntry(java.lang.String)
public CacheEntry getQuiet(String key) throws IOException
IOException
public abstract CacheEntry getQuiet(String key, CacheEntry defaultValue)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |