PHP Class ManaPHP\Security\RateLimiter\Adapter\Redis

Inheritance: extends ManaPHP\Security\RateLimiter
Datei anzeigen Open project: manaphp/manaphp

Protected Properties

Property Type Description
$_prefix string

Public Methods

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

Protected Methods

Method Description
_limit ( string $id, string $resource, integer $duration, integer $times ) : boolean

Method Details

__construct() public method

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

_limit() protected method

protected _limit ( string $id, string $resource, integer $duration, integer $times ) : boolean
$id string
$resource string
$duration integer
$times integer
return boolean

Property Details

$_prefix protected_oe property

protected string $_prefix
return string