Overview

Namespaces

  • bandwidthThrottle
    • tokenBucket
      • storage
        • scope

Classes

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

Interfaces

  • Storage

Exceptions

  • StorageException
  • Overview
  • Namespace
  • Class

Class MemcachedStorage

Memcached based storage which can be shared among processes.

This storage is in the global scope.

bandwidthThrottle\tokenBucket\storage\MemcachedStorage implements bandwidthThrottle\tokenBucket\storage\Storage, bandwidthThrottle\tokenBucket\storage\scope\GlobalScope
Final
Namespace: bandwidthThrottle\tokenBucket\storage
License: WTFPL
Author: Markus Malkusch markus@malkusch.de
Link: Donations
Located at storage/MemcachedStorage.php
Methods summary
public
# __construct( string $name, Memcached $memcached )

Sets the memcached API and the token bucket name.

Sets the memcached API and the token bucket name.

The api needs to have at least one server in its pool. I.e. it has to be added with Memcached::addServer().

Parameters

$name
The name of the shared token bucket.
$memcached
The memcached API.
API documentation generated by ApiGen