Embedded_Cache_Lite
What is it ?
Embedded_Cache_Lite is a Cache_Lite version designed for embedded use (in another bigger project for example).
There is no PEAR dependency at all. Even PEAR_Error is emulated.
So there is no "include_path" stuff or any PEAR.php file...
How do you use ?
The only change on the Cache_Lite classical using is the need of a special constant : CACHE_LITE_HOME.
For example :
<?php
// we define the CACHE_LITE_HOME constant (without any trailing '/')
define('CACHE_LITE_HOME', '/var/www/html/foo/Embedded_Cache_Lite');
require_once(CACHE_LITE_HOME . '/Lite.php');
// [...] Classical use (see PEAR/Cache_Lite docs)
?>
Another example with Cache_Lite_Output :
<?php
// we define the CACHE_LITE_HOME constant (without any trailing '/')
define('CACHE_LITE_HOME', '/var/www/html/foo/Embedded_Cache_Lite');
require_once(CACHE_LITE_HOME . '/Lite/Output.php');
// [...] Classical use (see PEAR/Cache_Lite docs)
?>
Where ?
Embedded_Cache_Lite is build automatically by a script from the PEAR version (see subversion sources for more details).
But you can download "ready to use" versions of Embedded_Cache_Lite at :
