PHP Interface ManaPHP\CacheInterface

Datei anzeigen Open project: manaphp/manaphp

Public Methods

Method Description
delete ( string $key ) Deletes a value with the specified key from cache
exists ( string $key ) : boolean Checks whether a specified key exists in the cache.
get ( string $key ) : mixed | false | array Retrieves a value from cache with a specified key.
set ( string $key, mixed $value, integer $ttl ) : void Stores a value identified by a key into cache.

Method Details

delete() public method

Deletes a value with the specified key from cache
public delete ( string $key )
$key string

exists() public method

Checks whether a specified key exists in the cache.
public exists ( string $key ) : boolean
$key string
return boolean

get() public method

Retrieves a value from cache with a specified key.
public get ( string $key ) : mixed | false | array
$key string
return mixed | false | array

set() public method

Stores a value identified by a key into cache.
public set ( string $key, mixed $value, integer $ttl ) : void
$key string
$value mixed
$ttl integer
return void