cacheobject.api.php in Cache Object API 7
File
cacheobject.api.phpView source
<?php
/**
* Invoked after objects were loaded from the cache.
*
* @return boolean|null
* Return FALSE to prevent the object from being returned.
*/
function hook_cacheobject_load($objects, $cids, $bin) {
}
/**
* Invoked before an object is put into the cache.
*
* @return boolean|null
* Return FALSE to prevent the object from being saved.
*/
function hook_cacheobject_presave($object, $cid, $bin) {
}
/**
* Invoked before data is expired from the cache.
*
* @return boolean|null
* Return FALSE to prevent the cache from being cleared.
*/
function hook_cacheobject_clear($cid, $wildcard, $bin) {
}
Functions
Name | Description |
---|---|
hook_cacheobject_clear | Invoked before data is expired from the cache. |
hook_cacheobject_load | Invoked after objects were loaded from the cache. |
hook_cacheobject_presave | Invoked before an object is put into the cache. |