PHP Class 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.
Author: Markus Malkusch ([email protected])
Inheritance: implements bandwidthThrottle\tokenBucket\storage\Storage, implements bandwidthThrottle\tokenBucket\storage\scope\GlobalScope
Afficher le fichier Open project: bandwidth-throttle/token-bucket

Méthodes publiques

Méthode Description
__construct ( integer $key ) Sets the System V IPC key for the shared memory and its semaphore.
bootstrap ( $microtime )
getMicrotime ( )
getMutex ( )
isBootstrapped ( )
remove ( )
setMicrotime ( $microtime )

Private Methods

Méthode Description
attach ( ) Attaches the shared memory segment.

Method Details

__construct() public méthode

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

bootstrap() public méthode

public bootstrap ( $microtime )

getMicrotime() public méthode

public getMicrotime ( )

getMutex() public méthode

public getMutex ( )

isBootstrapped() public méthode

public isBootstrapped ( )

remove() public méthode

public remove ( )

setMicrotime() public méthode

public setMicrotime ( $microtime )