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.

PHP Functions<br />

zend_shm_cache_store<br />

API <strong>Reference</strong><br />

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

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

Available since version 4.0<br />

Description<br />

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

0 ])<br />

Parameters<br />

key<br />

value<br />

ttl<br />

The data's key. Optional: prefix with a [namespace::]<br />

Any PHP object that can be serialized<br />

- Time to live, in seconds. The Data Cache keeps an object 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 />

249

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

Saved successfully!

Ooh no, something went wrong!