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);
}