You are here

protected function PermanentMemcacheBackendTest::createCacheBackend in Permanent Cache Bin 8

Creates a new instance of PermanentMemcacheBackend.

Return value

\Drupal\pcb_memcache\Cache\PermanentMemcacheBackend A new PermanentMemcacheBackend cache backend.

Overrides GenericCacheBackendUnitTestBase::createCacheBackend

File

modules/pcb_memcache/tests/src/Kernel/PermanentMemcacheBackendTest.php, line 34

Class

PermanentMemcacheBackendTest
Tests the PermanentMemcacheBackendTest.

Namespace

Drupal\Tests\pcb_memcache\Kernel

Code

protected function createCacheBackend($bin) {
  $cache = \Drupal::service('cache.backend.permanent_memcache')
    ->get($bin);
  return $cache;
}