Overview

Namespaces

  • bandwidthThrottle
    • tokenBucket
      • storage
        • scope

Classes

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

Interfaces

  • Storage

Exceptions

  • StorageException
  • Overview
  • Namespace
  • Class

Class SessionStorage

Session based storage which is shared for one user accross requests.

This storage is in the session scope.

As PHP's session are thread safe this implementation doesn't provide a locking Mutex.

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

Sets the bucket's name.

Sets the bucket's name.

Parameters

$name
The bucket's name.
API documentation generated by ApiGen