Cache
class Cache
Cache controll using PEAR::Cache_Lite.
Constants
LIFETIME |
Default cache lifetime. |
CACHEDIR |
Directory to save cache files. |
Properties
static object | $_instance | Instance of PEAR::Cache_Lite class. |
Methods
static void
forge()
Create Cache_Lite object and set it to static variable.
static void
getInstance()
Get Cache_Lite object.
static mixed
get(string $id, string $group = 'default', int $lifeTime = NULL)
Get data from cache.
static void
save(mixed $data, string $id, string $group = 'default')
Save data into cache.
static void
clean(string $group = FALSE)
Clean cache.
Details
at line 41
static void
forge()
Create Cache_Lite object and set it to static variable.
at line 56
static void
getInstance()
Get Cache_Lite object.
at line 71
static mixed
get(string $id, string $group = 'default', int $lifeTime = NULL)
Get data from cache.
at line 94
static void
save(mixed $data, string $id, string $group = 'default')
Save data into cache.
at line 107
static void
clean(string $group = FALSE)
Clean cache.