lucee.Component coldbox.system.cache.store.ConcurrentStore coldbox.system.cache.store.ConcurrentSoftReferenceStore
I am a concurrent soft reference 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. |
private any
|
createSoftReference(any objectKey, any target)
Create SR, register cached object and reference. |
any
|
get(any objectKey)
Get an object from cache. |
any
|
getQuiet(any objectKey)
Get an object from cache. |
any
|
getReferenceQueue()
Get soft reference queue object. |
any
|
getSoftRefKey(any softRef)
Get the soft reference's key from the soft reference lookback map. |
any
|
getSoftRefKeyMap()
Get the soft reference key map. |
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='0'], [any lastAccessTimeout='0'], [any extras='[runtime expression]'])
sets an object in the storage. |
any
|
softRefLookup(any softRef)
See if the soft reference is in the reference key map. |
Methods inherited from class coldbox.system.cache.store.ConcurrentStore |
---|
expireObject, flush, getIndexer, getKeys, getPool, getSize, getStoreID, isExpired |
Methods inherited from class lucee.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 class
ConcurrentStore
objectKey
- The object keyClear all elements of the store
clearAll
in class
ConcurrentStore
Create SR, register cached object and reference
objectKey
- The value of the key pairtarget
- The object to wrapGet an object from cache. If its a soft reference object it might return a null value.
get
in class
ConcurrentStore
objectKey
- The key of the objectGet an object from cache. If its a soft reference object it might return a null value.
getQuiet
in class
ConcurrentStore
objectKey
- The key of the objectGet soft reference queue object
Get the soft reference's key from the soft reference lookback map
softRef
- The soft reference to checkGet the soft reference key map
Check if an object is in cache.
lookup
in class
ConcurrentStore
objectKey
- The key of the objectReap the storage, clean it from old stuff
reap
in class
ConcurrentStore
sets an object in the storage.
set
in class
ConcurrentStore
objectKey
- The object keyobject
- The object to savetimeout
- Timeout in minuteslastAccessTimeout
- Idle Timeout in minutesextras
- A map of extra name-value pairsSee if the soft reference is in the reference key map
softRef
- The soft reference to check