railo-context.Component coldbox.system.cache.store.JDBCStore
I am a cool cool JDBC Store for CacheBox
Constructor Summary | |
---|---|
init(any<ICacheProvider> cacheProvider)
Constructor. |
Method Summary | |
---|---|
any
|
clear(any objectKey)
Clears an object from the storage pool. |
void
|
clearAll()
Clear all elements of the store. |
private void
|
ensureTable()
Create the caching table if necessary. |
void
|
expireObject(any objectKey)
Mark an object for expiration. |
void
|
flush()
Flush the store to a permanent storage. |
any
|
get(any objectKey)
Get an object from cache. |
any
|
getIndexer()
Get the store's pool metadata indexer structure. |
any
|
getKeys()
Get all the store's object keys. |
any
|
getNormalizedID(any objectKey)
Get the cached normalized id. |
any
|
getQuiet(any objectKey)
Get an object from cache with no stats. |
any
|
getSize()
Get the cache's size in items. |
any
|
getStoreID()
Get this storage's ID. |
private any
|
getUtil()
Create and return a util object. |
any
|
isExpired(any objectKey)
Test if an object in the store has expired or not, returns false if object not found. |
any
|
lookup(any objectKey)
Check if an object is in cache. |
private any
|
lookupQuery(any objectKey)
Get the lookup query. |
void
|
reap()
Reap the storage, clean it from old stuff. |
void
|
set(any objectKey, any object, [any timeout='0'], [any lastAccessTimeout='0'], [any extras='[runtime expression]'])
sets an object in the storage. |
Methods inherited from class railo-context.Component |
---|
None |
Constructor Detail |
---|
Constructor
cacheProvider
- The associated cache provider as coldbox.system.cache.ICacheProviderMethod Detail |
---|
Clears an object from the storage pool
clear
in interface
IObjectStore
objectKey
- The object keyClear all elements of the store
clearAll
in interface
IObjectStore
Create the caching table if necessary
Mark an object for expiration
expireObject
in interface
IObjectStore
objectKey
- The object keyFlush the store to a permanent storage
flush
in interface
IObjectStore
Get an object from cache
get
in interface
IObjectStore
objectKey
- The key of the objectGet the store's pool metadata indexer structure
getIndexer
in interface
IObjectStore
Get all the store's object keys
getKeys
in interface
IObjectStore
Get the cached normalized id
objectKey
- The key of the objectGet an object from cache with no stats
getQuiet
in interface
IObjectStore
objectKey
- The key of the objectGet the cache's size in items
getSize
in interface
IObjectStore
Get this storage's ID
Create and return a util object
Test if an object in the store has expired or not, returns false if object not found
isExpired
in interface
IObjectStore
objectKey
- The object keyCheck if an object is in cache.
lookup
in interface
IObjectStore
objectKey
- The key of the objectGet the lookup query
objectKey
- The key of the objectReap the storage, clean it from old stuff
reap
in interface
IObjectStore
sets an object in the storage.
set
in interface
IObjectStore
objectKey
- The object keyobject
- The object to savetimeout
- Timeout in minuteslastAccessTimeout
- Timeout in minutesextras
- A map of extra name-value pairs