WEB-INF.cftags.component coldbox.system.cache.store.BlackholeStore
I am the fastest way to cache objects. I am so fast because I dont do anything. I'm really a tool to use when working on caching strategies. When I am in use nothing is cached. It just vanishes.
Constructor Summary | |
---|---|
init(any<ICacheProvider> cacheProvider)
Constructor. |
Method Summary | |
---|---|
any
|
clear(any objectKey)
Clears an object from the storage pool. |
void
|
clearAll()
No work to do. |
void
|
expireObject(any objectKey)
Mark an object for expiration. |
void
|
flush()
Pretends to flush the store to a permanent storage. |
any
|
get(any objectKey)
Returns null. |
any
|
getIndexer()
No work to do. |
any
|
getKeys()
No work to do. |
any
|
getQuiet(any objectKey)
Returns null. |
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)
Returns false. |
void
|
reap()
Pretends to reap the storage, clean it from old stuff. |
void
|
set(any objectKey, any object, [any timeout=''], [any lastAccessTimeout=''], [any extras='[runtime expression]'])
Saves an object in a blackhole. |
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 keyNo work to do. Everything is already in the blackhole.
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 keyPretends to flush the store to a permanent storage
flush
in interface
cachebox.build-coldbox.coldbox.system.cache.store.IObjectStore
Returns null. This is a blackhole.
get
in interface
cachebox.build-coldbox.coldbox.system.cache.store.IObjectStore
objectKey
- The key of the objectNo work to do. Everything is already in the blackhole.
getIndexer
in interface
cachebox.build-coldbox.coldbox.system.cache.store.IObjectStore
No work to do. Everything is already in the blackhole.
getKeys
in interface
cachebox.build-coldbox.coldbox.system.cache.store.IObjectStore
Returns null. This is a blackhole.
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 keyReturns false. No work to do. Everything is already in the blackhole.
lookup
in interface
cachebox.build-coldbox.coldbox.system.cache.store.IObjectStore
objectKey
- The key of the objectPretends to reap the storage, clean it from old stuff.
reap
in interface
cachebox.build-coldbox.coldbox.system.cache.store.IObjectStore
Saves an object in a blackhole. You'll never see it again.
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