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.

Data Cache API<br />

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

The Data Cache API is a caching option that is integrated into Zend Server. In terms of value the option<br />

provides high performance in memory caching. As it is integrated into Zend Server you also gain a certain<br />

amount of control such as the ability to turn on/off the component and manually clear the cache with a<br />

click of a button. The Data Cache API is designed with an APC compatibility layer ensuring that<br />

extendibility with most APC compatible applications.<br />

How it works:<br />

Zend Data Cache is a set of API functions enabling a developer to store and manage data items (PHP<br />

strings, arrays and other data) and even output elements in either disk-based cache or shared memory<br />

cache. Zend Data Cache allows for precision guided caching when Page Caching is not an option. The<br />

provided API is easy-to-use on existing code, and in many cases a developer can skip existing code<br />

sections by simply wrapping them with caching APIs.<br />

Page Caching<br />

Page Caching is ideal for cases when you want to avoid programmatic intervention to implement,<br />

configure and manage caching capabilities. The integration into Zend Server allows complete control over<br />

the caching activity and with relative ease you can add, remove and change caching rules as well as<br />

empty the cache with a click of a button.<br />

How it works:<br />

Zend Page Cache allows caching of entire PHP web pages, or more correctly put, entire HTTP responses<br />

sent out from PHP. Page Caching permits dramatically improving the performance of pages on web<br />

applications (sometimes running as high as 10x, 20x and even 100x times faster), while maintaining<br />

dynamic capabilities through an elaborate system of caching rules that could be based on request<br />

parameters and user session data.<br />

Zend Framework Cache API<br />

The Zend Framework Cache API is a standardized open source caching solution. This grants you the<br />

freedom to not only configure it based on your needs but also to contribute extensions and fixes and<br />

benefit from contributions from other developers. The Zend framework API has pluggable backends so<br />

that you can create a generic implementation and swap the backend with different solutions such as<br />

memcache, APC and the Data Cache API. Using the Data Cache API provides an additional advantage<br />

as it allows you to use an option that is integrated into Zend Server gain a certain amount of control such<br />

as the ability to turn on/off the component and manually clear the cache with a click of a button.<br />

143

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

Saved successfully!

Ooh no, something went wrong!