Re: Cache_Lite

From: Date: Fri, 13 Jan 2006 23:23:30 +0000
Subject: Re: Cache_Lite
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-22527@lists.php.net to get a copy of this message
The almost-too-simple description is that the class is for caching arbitrary data to the hard drive. This is done via key->value pairs. You have a $key that describes your data, and you have $someData. Cache it ($cache->save($someData, $key)) or retrieve it ($cache->get($key)). If it hasn't been cached yet, $cache->get($key) will return false, so you should be sure to handle that case in your code by generating $someData, then saving it. ~Seth On Jan 13, 2006, at 3:58 PM, leegold wrote:
http://pear.php.net/package/Cache_Lite The documentation seems really good but I can't get a handle on the basic concept. Wondered if someone in a super simple way could explain what I would use package this for? Thanks very much, Lee G. --PEAR General Mailing List (http://pear.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php


« previous php.pear.general (#22527) next »