ApcuBackend example


class ApcuBackendTest extends GenericCacheBackendUnitTestBase {

  /** * {@inheritdoc} */
  protected function createCacheBackend($bin) {
    return new ApcuBackend($bin$this->databasePrefix, \Drupal::service('cache_tags.invalidator.checksum'));
  }

  /** * {@inheritdoc} */
  protected function tearDown(): void {
    foreach ($this->cachebackends as $bin => $cachebackend) {
      $this->cachebackends[$bin]->removeBin();
    }
    parent::tearDown();
  }

  
Home | Imprint | This part of the site doesn't use cookies.