PHP Class ManaPHP\Counter\Adapter\Redis

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

Protected Properties

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

Méthodes publiques

Méthode Description
__construct ( string | array $options = [] ) Redis constructor.
delete ( string $type, string $id ) : void
get ( string $type, string $id ) : integer
increment ( string $type, string $id, integer $step = 1 ) : integer

Method Details

__construct() public méthode

Redis constructor.
public __construct ( string | array $options = [] )
$options string | array

delete() public méthode

public delete ( string $type, string $id ) : void
$type string
$id string
Résultat void

get() public méthode

public get ( string $type, string $id ) : integer
$type string
$id string
Résultat integer

increment() public méthode

public increment ( string $type, string $id, integer $step = 1 ) : integer
$type string
$id string
$step integer
Résultat integer

Property Details

$_prefix protected_oe property

protected string $_prefix
Résultat string