PHP Class ManaPHP\Security\RateLimiter\Adapter\Redis

Inheritance: extends ManaPHP\Security\RateLimiter
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.

Méthodes protégées

Méthode Description
_limit ( string $id, string $resource, integer $duration, integer $times ) : boolean

Method Details

__construct() public méthode

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

_limit() protected méthode

protected _limit ( string $id, string $resource, integer $duration, integer $times ) : boolean
$id string
$resource string
$duration integer
$times integer
Résultat boolean

Property Details

$_prefix protected_oe property

protected string $_prefix
Résultat string