PHP Interface ManaPHP\Store\AdapterInterface

Show file Open project: manaphp/manaphp Interface Usage Examples

Public Methods

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

Method Details

delete() public method

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

exists() public method

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

get() public method

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

set() public method

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