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

This storage is in the global scope. However the scope is limited to the shared memory. I.e. the scope is not shared between hosts.
Автор: Markus Malkusch ([email protected])
Наследование: implements bandwidthThrottle\tokenBucket\storage\Storage, implements bandwidthThrottle\tokenBucket\storage\scope\GlobalScope
Показать файл Открыть проект

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

Метод Описание
__construct ( integer $key ) Sets the System V IPC key for the shared memory and its semaphore.
bootstrap ( $microtime )
getMicrotime ( )
getMutex ( )
isBootstrapped ( )
remove ( )
setMicrotime ( $microtime )

Приватные методы

Метод Описание
attach ( ) Attaches the shared memory segment.

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

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

You can create the key with PHP's function ftok().
public __construct ( integer $key )
$key integer The System V IPC key.

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

public bootstrap ( $microtime )

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

public getMicrotime ( )

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

public getMutex ( )

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

public isBootstrapped ( )

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

public remove ( )

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

public setMicrotime ( $microtime )