lock = $lock; $this->settings = $settings; $this->memcacheFactory = $memcache_factory; $this->checksumProvider = $checksum_provider; } /** * Gets MemcacheBackend for the specified cache bin. * * @param $bin * The cache bin for which the object is created. * * @return \Drupal\memcache\MemcacheBackend * The cache backend object for the specified cache bin. */ public function get($bin) { return new MemcacheBackend( $bin, $this->memcacheFactory->get($bin), $this->lock, $this->settings, $this->checksumProvider ); } }