PHP Класс bandwidthThrottle\tokenBucket\storage\PredisStorage

This storage is in the global scope.
Автор: Markus Malkusch ([email protected])
Наследование: implements bandwidthThrottle\tokenBucket\storage\Storage, implements bandwidthThrottle\tokenBucket\storage\scope\GlobalScope
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
__construct ( string $name, Client $redis ) Sets the Redis API.
bootstrap ( $microtime )
getMicrotime ( )
getMutex ( )
isBootstrapped ( )
remove ( )
setMicrotime ( $microtime )

Описание методов

__construct() публичный Метод

Sets the Redis API.
public __construct ( string $name, Client $redis )
$name string The resource name.
$redis Predis\Client The Redis API.

bootstrap() публичный Метод

public bootstrap ( $microtime )

getMicrotime() публичный Метод

public getMicrotime ( )

getMutex() публичный Метод

public getMutex ( )

isBootstrapped() публичный Метод

public isBootstrapped ( )

remove() публичный Метод

public remove ( )

setMicrotime() публичный Метод

public setMicrotime ( $microtime )