PHP Class ElggHMACCache, Elgg

Author: Curverider Ltd ([email protected])
Inheritance: extends ElggCache
Datei anzeigen Open project: elgg/elgg Class Usage Examples

Public Methods

Method Description
__construct ( integer $max_age ) Set the Elgg cache.
__destruct ( ) Clean out old stuff.
clear ( ) : true Clear out all the contents of the cache.
delete ( string $key ) : boolean Invalidate a given key.
load ( string $key, integer $offset, integer $limit = null ) : string Load a key
save ( string $key, string $data ) : boolean Save a key

Method Details

__construct() public method

Set the Elgg cache.
public __construct ( integer $max_age )
$max_age integer Maximum age in seconds, 0 if no limit.

__destruct() public method

Clean out old stuff.
public __destruct ( )

clear() public method

Not currently implemented in this cache type.
public clear ( ) : true
return true

delete() public method

Invalidate a given key.
public delete ( string $key ) : boolean
$key string Name
return boolean

load() public method

Load a key
public load ( string $key, integer $offset, integer $limit = null ) : string
$key string Name
$offset integer Offset
$limit integer Limit
return string

save() public method

Save a key
public save ( string $key, string $data ) : boolean
$key string Name
$data string Value
return boolean