/** * Create a new Memcache store. * * @param \Memcache $memcache * @param string $prefix */ public function __construct(\Memcache $memcache, $prefix = '') { $this->memcache = $memcache; parent::__construct($prefix); }
/** * Create a new Memcached store. * * @param \Memcached $storage * @param string $prefix */ public function __construct(\Memcached $storage, $prefix = '') { $this->memcached = $storage; parent::__construct($prefix); }
/** * Create a new Memcached store. * * @param AbstractStorage $storage * @param string $prefix */ public function __construct(AbstractStorage $storage, $prefix = '') { $this->storage = $storage; parent::__construct($storage->getPrefix() . $prefix); }