cachebox.system.cache.store.IObjectStore
The main interface for CacheBox object storages.
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 store. |
any<MetadataIndexer>
|
getIndexer()
Get the store's pool metadata indexer structure. |
any
|
getKeys()
Get all the store's object keys array. |
any
|
getQuiet(any objectKey)
Get an object from the store with no stat updates. |
any
|
getSize()
Get the store's size. |
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 the store. |
void
|
reap()
Reap the storage, clean it from old stuff. |
void
|
set(any objectKey, any object, [any timeout], [any lastAccessTimeout], [any extras])
sets an object in the storage. |
Method Detail |
---|
Clears an object from the storage pool
objectKey
- The object keyClear all elements of the store
Mark an object for expiration
objectKey
- The object keyFlush the store to a permanent storage
Get an object from the store
objectKey
- The key of the objectGet the store's pool metadata indexer structure
Get all the store's object keys array
Get an object from the store with no stat updates
objectKey
- The key of the objectGet the store's size
Test if an object in the store has expired or not
objectKey
- The object keyCheck if an object is in the store
objectKey
- The key of the objectReap the storage, clean it from old stuff
sets an object in the storage.
objectKey
- The object keyobject
- The object to savetimeout
- Timeout in minuteslastAccessTimeout
- Timeout in minutesextras
- A map of extra name-value pairs