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_disk_cache_fetch<br />

API <strong>Reference</strong><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_disk_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<br />

zend_shm_cache_delete<br />

Finds and deletes an entry from the cache, using a key to identify it. The key can be prefixed with a<br />

namespace to indicate that the key can be deleted within that namespace only. If a namespace is not<br />

provided, the Data Cache searches for the key in the global namespace<br />

Available since version 4.0<br />

Description<br />

boolean zend_shm_cache_delete (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 />

TRUE on success, FALSE on failure.<br />

251

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

Saved successfully!

Ooh no, something went wrong!