You are here

protected function MemcacheBackendUnitTest::createCacheBackend in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 modules/memcache/src/Tests/MemcacheBackendUnitTest.php \Drupal\memcache\Tests\MemcacheBackendUnitTest::createCacheBackend()

Creates a new instance of DatabaseBackend.

Return value

\Drupal\memcache\MemcacheBackend A new MemcacheBackend object.

Overrides GenericCacheBackendUnitTestBase::createCacheBackend

File

modules/memcache/src/Tests/MemcacheBackendUnitTest.php, line 33
Contains \Drupal\memcache\Tests\MemcacheBackendUnitTest.

Class

MemcacheBackendUnitTest
Tests the MemcacheBackend.

Namespace

Drupal\memcache\Tests

Code

protected function createCacheBackend($bin) {
  $factory = new MemcacheBackendFactory($this->container
    ->get('lock'), $this->container
    ->get('settings'), $this->container
    ->get('memcache.factory'), $this->container
    ->get('cache_tags.invalidator.checksum'));
  return $factory
    ->get($bin);
}