PHP Class ManaPHP\Store

Inheritance: extends Component, implements manaphp\StoreInterface
Datei anzeigen Open project: manaphp/manaphp

Public Properties

Property Type Description
$adapter ManaPHP\Store\AdapterInterface

Protected Properties

Property Type Description
$_prefix string

Public Methods

Method Description
__construct ( string | array | ManaPHP\Store\AdapterInterface $options = [] ) Store constructor.
delete ( string $key ) Delete content
exists ( string $key ) : boolean Check if id exists
get ( string $key ) : mixed Fetch content
set ( string $key, mixed $value ) : void Stores content
setDependencyInjector ( ManaPHP\DiInterface $dependencyInjector ) : static

Method Details

__construct() public method

Store constructor.
public __construct ( string | array | ManaPHP\Store\AdapterInterface $options = [] )
$options string | array | ManaPHP\Store\AdapterInterface

delete() public method

Delete content
public delete ( string $key )
$key string

exists() public method

Check if id exists
public exists ( string $key ) : boolean
$key string
return boolean

get() public method

Fetch content
public get ( string $key ) : mixed
$key string
return mixed

set() public method

Stores content
public set ( string $key, mixed $value ) : void
$key string
$value mixed
return void

setDependencyInjector() public method

public setDependencyInjector ( ManaPHP\DiInterface $dependencyInjector ) : static
$dependencyInjector ManaPHP\DiInterface
return static

Property Details

$_prefix protected_oe property

protected string $_prefix
return string

$adapter public_oe property

public AdapterInterface,ManaPHP\Store $adapter
return ManaPHP\Store\AdapterInterface