CacheA caching library to facilitate caching of script output and data structures within the script. Structure is thus:
class Cache (base class)
|
| Static Properties:
| bool enabled
|
| Static Methods:
| void setPrefix(string prefix)
| void setStore(sttring store)
|
|
+--- class OutputCache
|
| Static Methods:
| bool Start(string group, string id, int ttl)
| void End()
|
+--- class DataCache
Static Methods:
mixed Get(string group, string id)
void Put(string group, string id, int ttl, mixed data)
For usage see the short article on caching. There are two scripts included in the zip file to perform cleansing of stale content from the storage area. One in shell script, one in PHP. Link to meIf you use any of the code on this site (and if you don't I guess) or it makes your life easier, I'd appreciate a link - http://www.phpguru.org. Thanks. |
