klenwell information services : PhpPearCacheLite

Revision history for PhpPearCacheLite


Revision [3001]

Last edited on 2016-07-09 16:54:43 by KlenwellAdmin [Replaces old-style internal links with new pipe-split links.]
Additions:
[[http://pear.php.net/package/Cache_Lite/download | Download]] (pear.php.net)
[[http://pear.php.net/manual/en/package.caching.cache-lite.intro.php | Documentation]] (pear.php.net)
[[http://pear.php.net/package/Cache_Lite/docs/latest/apidoc/Cache_Lite/Cache_Lite.html | Cache_Lite Class API]] (pear.php.net)
[[http://pear.php.net/package/Cache_Lite/docs/latest/__filesource/fsource_Cache_Lite__Cache_Lite-1.7.8Lite.php.html#a296 | Set (or Get) Options]] (pear.php.net)
[[http://code.google.com/p/klenwell/source/browse/trunk/projects/php/phpwell/test/vendor/pear-cache_lite.php | Phpwell Tests]] (code.google.com)
Deletions:
[[http://pear.php.net/package/Cache_Lite/download Download]] (pear.php.net)
[[http://pear.php.net/manual/en/package.caching.cache-lite.intro.php Documentation]] (pear.php.net)
[[http://pear.php.net/package/Cache_Lite/docs/latest/apidoc/Cache_Lite/Cache_Lite.html Cache_Lite Class API]] (pear.php.net)
[[http://pear.php.net/package/Cache_Lite/docs/latest/__filesource/fsource_Cache_Lite__Cache_Lite-1.7.8Lite.php.html#a296 Set (or Get) Options]] (pear.php.net)
[[http://code.google.com/p/klenwell/source/browse/trunk/projects/php/phpwell/test/vendor/pear-cache_lite.php Phpwell Tests]] (code.google.com)


Revision [1541]

Edited on 2010-08-08 15:13:25 by KlenwellAdmin [Replaces old-style internal links with new pipe-split links.]
Additions:
[[http://code.google.com/p/klenwell/source/browse/trunk/projects/php/phpwell/test/vendor/pear-cache_lite.php Phpwell Tests]] (code.google.com)


Revision [1540]

Edited on 2010-08-08 13:43:09 by KlenwellAdmin [Replaces old-style internal links with new pipe-split links.]
Additions:
require_once "Cache/Lite.php";
$cache_config = array(
'cacheDir' => '/tmp/',
'lifeTime' => 300,
'automaticCleaningFactor' => 200
);
$Cache = new Cache_Lite($cache_config);
$Cache->setOption('automaticSerialization', TRUE);
# get a config (workaround)
$auto_serialize = $Cache->_automaticSerialization;
assert($auto_serialize);
# save cache
$cache_id = 'your cache key';
$payload = 'a string or, with automaticSerialization enabled, mixed value';
$cached = $Cache->save($payload, $cache_id);
assert($cached);
# retrieve cache
$retrieved = $Cache->get($cache_id);
assert($retrieved == $payload);
# clean cache
$removed = $Cache->remove($cache_id);
$retrieved = $Cache->get($cache_id);
assert(! $retrieved);
Deletions:
# get a config (not officially supported)


Revision [1539]

Edited on 2010-08-07 22:08:16 by KlenwellAdmin [Replaces old-style internal links with new pipe-split links.]
Additions:
%%(php)
# import
# config and instantiate
# change a config
# get a config (not officially supported)
%%


Revision [1538]

Edited on 2010-08-07 22:00:27 by KlenwellAdmin [Replaces old-style internal links with new pipe-split links.]
Additions:
[[http://pear.php.net/package/Cache_Lite/docs/latest/__filesource/fsource_Cache_Lite__Cache_Lite-1.7.8Lite.php.html#a296 Set (or Get) Options]] (pear.php.net)
Deletions:
[[Set (or Get) Options http://pear.php.net/package/Cache_Lite/docs/latest/__filesource/fsource_Cache_Lite__Cache_Lite-1.7.8Lite.php.html#a296]] (pear.php.net)


Revision [1537]

Edited on 2010-08-07 21:59:58 by KlenwellAdmin [Replaces old-style internal links with new pipe-split links.]
Additions:
[[Set (or Get) Options http://pear.php.net/package/Cache_Lite/docs/latest/__filesource/fsource_Cache_Lite__Cache_Lite-1.7.8Lite.php.html#a296]] (pear.php.net)


Revision [1536]

Edited on 2010-08-07 21:57:55 by KlenwellAdmin [Replaces old-style internal links with new pipe-split links.]
Additions:
[[http://pear.php.net/package/Cache_Lite/docs/latest/apidoc/Cache_Lite/Cache_Lite.html Cache_Lite Class API]] (pear.php.net)


Revision [1535]

The oldest known version of this page was created on 2010-08-07 21:53:33 by KlenwellAdmin [Replaces old-style internal links with new pipe-split links.]