PHP Class Elgg\Cache\NullCache

This will eventually be replaced by something like Elgg\Cache\NullPool.
Inheritance: extends ElggSharedMemoryCache
Show file Open project: elgg/elgg

Public Methods

Method Description
clear ( ) : true Clears the entire cache (does not work)
delete ( string $key ) : boolean Delete data
load ( string $key, integer $offset, integer $limit = null ) : mixed Retrieves data.
save ( string $key, string $data, integer $ttl = null ) : boolean Saves a name and value to the cache

Method Details

clear() public method

Clears the entire cache (does not work)
public clear ( ) : true
return true

delete() public method

Delete data
public delete ( string $key ) : boolean
$key string Unused
return boolean

load() public method

Retrieves data.
public load ( string $key, integer $offset, integer $limit = null ) : mixed
$key string Unused
$offset integer Unused
$limit integer Unused
return mixed

save() public method

Saves a name and value to the cache
public save ( string $key, string $data, integer $ttl = null ) : boolean
$key string Unused
$data string Unused
$ttl integer Unused
return boolean