30.07.2012 Views

Reference Guide

Reference Guide

Reference Guide

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Zend Server <strong>Reference</strong> Manual<br />

zend_disk_cache_store<br />

Stores a variable identified by a key into the cache. If a namespace is provided, the key is stored under<br />

that namespace. Identical keys can exist under different namespaces<br />

Available since version 4.0<br />

Description<br />

boolean zend_disk_cache_store (string $key, mixed $value [ , int $ttl<br />

= 0 ])<br />

Parameters<br />

key<br />

value<br />

ttl<br />

250<br />

The data key. Optional: prefix with a namespace<br />

Any PHP object that can be serialized.<br />

- Time to live, in seconds. The Data Cache keeps objects in the cache as long as the TTL is not<br />

expired. Once the TTL is expired, the object is removed from the cache. The default value is 0<br />

Return Value<br />

FALSE if cache storing fails, TRUE otherwise<br />

zend_shm_cache_fetch<br />

Fetches data from the cache. The key can be prefixed with a namespace to indicate searching within the<br />

specified namespace only. If a namespace is not provided, the Data Cache searches for the key in the<br />

global namespace<br />

Available since version 4.0<br />

Description<br />

mixed zend_shm_cache_fetch (mixed $key)<br />

Parameters<br />

key<br />

The data key or an array of data keys. Optional for key's name: prefix with a namespace<br />

Return Value<br />

FALSE if no data that matches the key is found, else it returns the stored data, If an array of keys is<br />

given, then an array which its keys are the original keys and the values are the corresponding stored data<br />

values

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!