PHP Interface Flintstone\Cache\CacheInterface

Datei anzeigen Open project: fire015/flintstone

Public Methods

Method Description
contains ( string $key ) : boolean Check if a key exists in the cache.
delete ( string $key ) Delete a key from the cache.
flush ( ) Flush the cache.
get ( string $key ) : mixed Get a key from the cache.
set ( string $key, mixed $data ) Set a key in the cache.

Method Details

contains() public method

Check if a key exists in the cache.
public contains ( string $key ) : boolean
$key string
return boolean

delete() public method

Delete a key from the cache.
public delete ( string $key )
$key string

flush() public method

Flush the cache.
public flush ( )

get() public method

Get a key from the cache.
public get ( string $key ) : mixed
$key string
return mixed

set() public method

Set a key in the cache.
public set ( string $key, mixed $data )
$key string
$data mixed