protected function MemcacheStorageBackendUnitTest::createCacheBackend in Memcache Storage 8
Creates a new instance of MemcachedBackend.
Return value
\Drupal\memcache_storage\MemcachedBackend A new MemcachedBackend object.
Overrides GenericCacheBackendUnitTestBase::createCacheBackend
File
- src/
Tests/ MemcacheStorageBackendUnitTest.php, line 33 - Contains \Drupal\memcache_storage\Tests\MemcacheStorageBackendUnitTest.
Class
- MemcacheStorageBackendUnitTest
- Tests the MemcacheBackend.
Namespace
Drupal\memcache_storage\TestsCode
protected function createCacheBackend($bin) {
$settings = $this->container
->get('settings');
$factory = $this->container
->get('memcache_storage.factory');
$checksum_provider = $this->container
->get('cache_tags.invalidator.checksum');
$factory = new MemcachedBackendFactory($factory, $settings, $checksum_provider);
return $factory
->get($bin);
}