PHP Class ManaPHP\Store

Inheritance: extends Component, implements manaphp\StoreInterface
Afficher le fichier Open project: manaphp/manaphp

Méthodes publiques

Свойство Type Description
$adapter ManaPHP\Store\AdapterInterface

Protected Properties

Свойство Type Description
$_prefix string

Méthodes publiques

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

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

delete() public méthode

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

exists() public méthode

Check if id exists
public exists ( string $key ) : boolean
$key string
Résultat boolean

get() public méthode

Fetch content
public get ( string $key ) : mixed
$key string
Résultat mixed

set() public méthode

Stores content
public set ( string $key, mixed $value ) : void
$key string
$value mixed
Résultat void

setDependencyInjector() public méthode

public setDependencyInjector ( ManaPHP\DiInterface $dependencyInjector ) : static
$dependencyInjector ManaPHP\DiInterface
Résultat static

Property Details

$_prefix protected_oe property

protected string $_prefix
Résultat string

$adapter public_oe property

public AdapterInterface,ManaPHP\Store $adapter
Résultat ManaPHP\Store\AdapterInterface