PHP Class ManaPHP\Store\Adapter\Redis

Inheritance: extends ManaPHP\Component, implements ManaPHP\Store\AdapterInterface
Afficher le fichier Open project: manaphp/manaphp

Protected Properties

Свойство Type Description
$_key string
$_service string

Méthodes publiques

Méthode Description
__construct ( string | array | Redis $options = [] ) Redis constructor.
delete ( string $id ) Delete content
exists ( string $id ) : boolean Check if id exists
get ( string $id ) : string | false Fetch content
set ( string $id, string $value ) : void Caches content
setDependencyInjector ( ManaPHP\DiInterface $dependencyInjector ) : static

Method Details

__construct() public méthode

Redis constructor.
public __construct ( string | array | Redis $options = [] )
$options string | array | ConfManaPHP\Store\Adapter\Redis

delete() public méthode

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

exists() public méthode

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

get() public méthode

Fetch content
public get ( string $id ) : string | false
$id string
Résultat string | false

set() public méthode

Caches content
public set ( string $id, string $value ) : void
$id string
$value string
Résultat void

setDependencyInjector() public méthode

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

Property Details

$_key protected_oe property

protected string $_key
Résultat string

$_service protected_oe property

protected string $_service
Résultat string