PHP Class ManaPHP\Counter\Adapter\Redis

Inheritance: extends ManaPHP\Component, implements ManaPHP\Counter\AdapterInterface
Mostrar archivo Open project: manaphp/manaphp

Protected Properties

Property Type Description
$_prefix string

Public Methods

Method 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 method

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

delete() public method

public delete ( string $type, string $id ) : void
$type string
$id string
return void

get() public method

public get ( string $type, string $id ) : integer
$type string
$id string
return integer

increment() public method

public increment ( string $type, string $id, integer $step = 1 ) : integer
$type string
$id string
$step integer
return integer

Property Details

$_prefix protected_oe property

protected string $_prefix
return string