|
ColdBox Platform Version 2.6.3 | ||||
FRAMES |
WEB-INF.cftags.componentcoldbox.system.cache.CacheManager
coldbox.system.cache.MTCacheManager
public class MTCacheManager
The multi-threaded cache manager.
Method Summary | |
---|---|
void |
clearAllEvents([boolean async='true'])
Clears all events from the cache. |
void |
clearAllViews([boolean async='true'])
Clears all views from the cache. |
void |
clearByKeySnippet(string keySnippet, [boolean regex='false'], [boolean async='true'])
Clears keys using the passed in object key snippet |
void |
clearEvent(string eventsnippet, [string queryString=''], [boolean async='true'])
Clears all the event permuations from the cache. |
void |
clearView(string viewSnippet, [boolean async='true'])
Clears all view name permutations from the cache according to the view name. |
void |
expireAll([boolean async='true'])
Expire All Objects. Use this instead of clear() from within handlers or any cached object, this sets the metadata for the objects to expire in the next request. Note that this is not an inmmediate expiration. Clear should only be used from outside a cached object |
void |
expireByKeySnippet(string keySnippet, [boolean regex='false'], [boolean async='true'])
Same as expireKey but can touch multiple objects depending on the keysnippet that is sent in. |
void |
expireKey(string objectKey, [boolean async='true'])
Expire an Object. Use this instead of clearKey() from within handlers or any cached object, this sets the metadata for the objects to expire in the next request. Note that this is not an inmmediate expiration. Clear should only be used from outside a cached object |
private void |
initPool()
Initialize and set the internal object Pool |
void |
reap()
Reap the cache. |
Methods inherited from class WEB-INF.cftags.component |
---|
|
Method Detail |
---|
public void clearAllEvents([boolean async='true'])
clearAllEvents
in class
CacheManager
async
- Run asynchronously or notpublic void clearAllViews([boolean async='true'])
clearAllViews
in class
CacheManager
async
- Run asynchronously or notpublic void clearByKeySnippet(string keySnippet, [boolean regex='false'], [boolean async='true'])
clearByKeySnippet
in class
CacheManager
keySnippet
- The key snippet to use to clear keys. It matches using findnocaseregex
- Use regex or notasync
- Run asynchronously or not, defaults to truepublic void clearEvent(string eventsnippet, [string queryString=''], [boolean async='true'])
clearEvent
in class
CacheManager
eventsnippet
- The event snippet to clear on. Can be partial or fullqueryString
- If passed in, it will create a unique hash out of it. For purging purposesasync
- Run asynchronously or notpublic void clearView(string viewSnippet, [boolean async='true'])
clearView
in class
CacheManager
viewSnippet
- The view name snippet to purge from the cacheasync
- Run asynchronously or notpublic void expireAll([boolean async='true'])
expireAll
in class
CacheManager
async
- Run asynchronously or notpublic void expireByKeySnippet(string keySnippet, [boolean regex='false'], [boolean async='true'])
expireByKeySnippet
in class
CacheManager
keySnippet
- The key snippet to useregex
- Use regex or notasync
- Run asynchronously or notpublic void expireKey(string objectKey, [boolean async='true'])
expireKey
in class
CacheManager
objectKey
async
- Run asynchronously or notprivate void initPool()
initPool
in class
CacheManager
public void reap()
reap
in class
CacheManager
|
ColdBox Platform Version 2.6.3 | ||||
FRAMES |