PHP Interface ManaPHP\StoreInterface

Mostrar archivo Open project: manaphp/manaphp

Public Methods

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

Method Details

delete() public method

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

exists() public method

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

get() public method

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

set() public method

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