WEB-INF.cftags.component coldbox.system.cache.store.ConcurrentStore
I am a concurrent object store. In other words, I am fancy!
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. |
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 the object store, returns java null if not found. |
any
|
getIndexer()
Get the store's pool metadata indexer structure. |
any
|
getKeys()
Get all the store's object keys. |
any
|
getPool()
Get a reference to the store's pool of objects. |
any
|
getQuiet(any objectKey)
Get an object from cache with no stats, null if not found. |
any
|
getSize()
Get the cache's size in items. |
any
|
getStoreID()
Get this storage's ID. |
any
|
isExpired(any objectKey)
Test if an object in the store has expired or not. |
any
|
lookup(any objectKey)
Check if an object is in cache. |
void
|
reap()
Reap the storage, clean it from old stuff. |
void
|
set(any objectKey, any object, [any timeout=''], [any lastAccessTimeout=''], [any extras='[runtime expression]'])
sets an object in the storage. |
Methods inherited from class WEB-INF.cftags.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
cachebox.build-coldbox.coldbox.system.cache.store.IObjectStore
objectKey
- The object keyClear all elements of the store
clearAll
in interface
cachebox.build-coldbox.coldbox.system.cache.store.IObjectStore
Mark an object for expiration
expireObject
in interface
cachebox.build-coldbox.coldbox.system.cache.store.IObjectStore
objectKey
- The object keyFlush the store to a permanent storage
flush
in interface
cachebox.build-coldbox.coldbox.system.cache.store.IObjectStore
Get an object from the object store, returns java null if not found
get
in interface
cachebox.build-coldbox.coldbox.system.cache.store.IObjectStore
objectKey
- The key of the objectGet the store's pool metadata indexer structure
getIndexer
in interface
cachebox.build-coldbox.coldbox.system.cache.store.IObjectStore
Get all the store's object keys
getKeys
in interface
cachebox.build-coldbox.coldbox.system.cache.store.IObjectStore
Get a reference to the store's pool of objects
Get an object from cache with no stats, null if not found
getQuiet
in interface
cachebox.build-coldbox.coldbox.system.cache.store.IObjectStore
objectKey
- The key of the objectGet the cache's size in items
getSize
in interface
cachebox.build-coldbox.coldbox.system.cache.store.IObjectStore
Get this storage's ID
Test if an object in the store has expired or not
isExpired
in interface
cachebox.build-coldbox.coldbox.system.cache.store.IObjectStore
objectKey
- The object keyCheck if an object is in cache.
lookup
in interface
cachebox.build-coldbox.coldbox.system.cache.store.IObjectStore
objectKey
- The key of the objectReap the storage, clean it from old stuff
reap
in interface
cachebox.build-coldbox.coldbox.system.cache.store.IObjectStore
sets an object in the storage.
set
in interface
cachebox.build-coldbox.coldbox.system.cache.store.IObjectStore
objectKey
- The object keyobject
- The object to savetimeout
- Timeout in minuteslastAccessTimeout
- Timeout in minutesextras
- A map of extra name-value pairs