30.07.2012 Views

Reference Guide

Reference Guide

Reference Guide

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Zend Data Cache<br />

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

The Zend Data Cache component provides a set of PHP functions to improve performance by storing<br />

data in the cache.<br />

The Zend Data Cache is used to cache different types of data (e.g., strings, arrays and objects), as well<br />

as script output or script output elements for various durations. Items can be stored in shared memory<br />

(SHM) or to disk. Namespaces are supported, to group cached objects for easy management.<br />

Data Caching is primarily used when it is impractical or impossible to cache the entire page output, such<br />

as when sections of the script are fully dynamic, or when the conditions for caching the script are too<br />

numerous. An example of this kind of usage is when some of the output is a form: The data may include<br />

credit card numbers, addresses and other kinds of information that should not be cached, for security<br />

reasons. For more information, see Working with the Data Cache.<br />

The Data Cache API includes the following functionality:<br />

Storing variables to the cache<br />

Fetching variables to the cache<br />

Deleting variables from the cache<br />

Clearing the cache<br />

Disk/memory (SHM) storage<br />

Caching using namespaces<br />

Cache folder depth configuration<br />

189

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

Saved successfully!

Ooh no, something went wrong!