PHP Interface Flintstone\Cache\CacheInterface

Afficher le fichier Open project: fire015/flintstone

Méthodes publiques

Méthode 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 méthode

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

delete() public méthode

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

flush() public méthode

Flush the cache.
public flush ( )

get() public méthode

Get a key from the cache.
public get ( string $key ) : mixed
$key string
Résultat mixed

set() public méthode

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