PHP Interface Jarves\Cache\Backend\CacheInterface

Show file Open project: jarves/jarves Interface Usage Examples

Public Methods

Method Description
configure ( Cache $cacheConfig )
delete ( string $key ) Deletes data for a key.
get ( string $key ) : mixed Gets the data for a key.
set ( string $key, mixed $value, integer $timeout = null ) : boolean Sets data for a key with a timeout.

Method Details

configure() public method

public configure ( Cache $cacheConfig )
$cacheConfig Jarves\Configuration\Cache

delete() public method

Deletes data for a key.
public delete ( string $key )
$key string

get() public method

Gets the data for a key.
public get ( string $key ) : mixed
$key string
return mixed

set() public method

Sets data for a key with a timeout.
public set ( string $key, mixed $value, integer $timeout = null ) : boolean
$key string
$value mixed
$timeout integer
return boolean