boolean zend_shm_cache_store(string [namespace::]key, mixed var [, int ttl])
boolean zend_disk_cache_store(string [namespace::]key, mixed var [, int ttl])
Description: store var identified by key into the cache. If a namespace is provided, the key is stored under that namespace. (Identical keys can exist under different namespaces)
Return Value: FALSE when stored failed, TRUE otherwise
Parameters:
key - the data's key. Possibly prefixed with namespace
var - can be any PHP object that can be serialized.
ttl - time to live in seconds. ZendCache keeps the objects in the cache as long as the TTL is no expired, once expired it will be removed from the cache
mixed zend_shm_cache_fetch(string [namespace::]key)
mixed zend_disk_cache_fetch(string [namespace::]key)
Description: fetch data from the cache. The key can be prefixed with a namespace to indicate searching within this namespace only. If no namespace is provided, ZendCache searches for the key in the global namespace
Return Value: NULL when no data matching the key is found, else it returns the stored data
Parameters:
key - the data's key. Possibly prefixed with namespace
boolean zend_disk_cache_delete( string [namespace::]key )
boolean zend_shm_cache_delete( string [namespace::]key )
Description: find and delete an entry from the cache, using a key to identify it. The key can be prefixed with a namespace to indicate deleting a key from within that namespace only. If no namespace is provided, ZendCache searches for the key in the global namespace
Return Value: TRUE on success, FALSE otherwise
Parameters:
key - the data's key. Possibly prefixed with namespace
bool zend_disk_cache_clear([string namespace])
bool zend_shm_cache_clear([string namespace])
Description: delete all entries from the cache, from all namespace. If 'namespace' is provided, delete all entries from that namespace only
Return Value: TRUE on success, FALSE otherwise
Parameters:
namespace - [optional] namespace to delete
|
|
|
|
|
Related Links: |
|
|
|