Overview

Namespaces

  • bandwidthThrottle
    • tokenBucket
      • storage
        • scope

Classes

  • FileStorage
  • IPCStorage
  • MemcachedStorage
  • MemcacheStorage
  • PDOStorage
  • PHPRedisStorage
  • PredisStorage
  • SessionStorage
  • SingleProcessStorage

Interfaces

  • Storage

Exceptions

  • StorageException
  • Overview
  • Namespace
  • Class

Interface Storage

Token storage.

The storage determines the scope for the token bucket. It therefore implements one of the *Scope marker interfaces:

  • bandwidthThrottle\tokenBucket\storage\scope\RequestScope: The bucket is shared only within one request.
  • bandwidthThrottle\tokenBucket\storage\scope\SessionScope: The bucket is shared between requests of one session.
  • bandwidthThrottle\tokenBucket\storage\scope\GlobalScope: The bucket is shared among all processes.

Direct known implementers

bandwidthThrottle\tokenBucket\storage\FileStorage, bandwidthThrottle\tokenBucket\storage\IPCStorage, bandwidthThrottle\tokenBucket\storage\MemcachedStorage, bandwidthThrottle\tokenBucket\storage\MemcacheStorage, bandwidthThrottle\tokenBucket\storage\PDOStorage, bandwidthThrottle\tokenBucket\storage\PHPRedisStorage, bandwidthThrottle\tokenBucket\storage\PredisStorage, bandwidthThrottle\tokenBucket\storage\SessionStorage, bandwidthThrottle\tokenBucket\storage\SingleProcessStorage
Namespace: bandwidthThrottle\tokenBucket\storage
License: WTFPL
Author: Markus Malkusch markus@malkusch.de
Link: Donations
Located at storage/Storage.php
API documentation generated by ApiGen