bandwidthThrottle\tokenBucket\storage\MemcacheStorage::__construct PHP Method

__construct() public method

The api needs to be connected already. I.e. Memcache::connect() was already called.
public __construct ( string $name, Memcache $memcache )
$name string The name of the shared token bucket.
$memcache Memcache The connected memcache API.
    public function __construct($name, \Memcache $memcache)
    {
        trigger_error("MemcacheStorage has been deprecated in favour of MemcachedStorage.", E_USER_DEPRECATED);
        $this->memcache = $memcache;
        $this->key = self::PREFIX . $name;
        $this->mutex = new MemcacheMutex($name, $memcache);
    }