CommonSense PHP API Library
Cache Class Reference

List of all members.

Static Public Member Functions

static reportsTo (ICacheProvider $cache)
static set ($key, $value, $duration=0, $use_distributed=false)
static get ($key, $use_distributed=false)
static delete ($key, $use_distributed=false)
static clear ($use_distributed=false)

Static Protected Attributes

static $reportsTo
static $inMemory = array()
static $distributed = false

Member Function Documentation

static Cache::clear ( use_distributed = false) [static]

Clear all values from the cache.

static Cache::delete ( key,
use_distributed = false 
) [static]

Remove a key value pair from cache.

Parameters:
string$key
static Cache::get ( key,
use_distributed = false 
) [static]

Fetch a value from cache.

Parameters:
string$key
Returns:
mixed
static Cache::reportsTo ( ICacheProvider cache) [static]

Push a cache provider onto the providers stack. Most expensive providers should be pushed first.

Parameters:
ICacheProvider$cache
static Cache::set ( key,
value,
duration = 0,
use_distributed = false 
) [static]

Set a cache value.

Parameters:
string$key
mixed$value
int$duration

Member Data Documentation

Cache::$distributed = false [static, protected]
Cache::$inMemory = array() [static, protected]
Cache::$reportsTo [static, protected]

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables