You are here

public function DepcalcCacheFactory::get in Dependency Calculation 8

Gets a cache backend class for a given cache bin.

Parameters

string $bin: The cache bin for which a cache backend object should be returned.

Return value

\Drupal\Core\Cache\CacheBackendInterface The cache backend object associated with the specified bin.

Overrides CacheFactoryInterface::get

File

src/Cache/DepcalcCacheFactory.php, line 38

Class

DepcalcCacheFactory

Namespace

Drupal\depcalc\Cache

Code

public function get($bin) {
  $backend = $this->factory
    ->get('depcalc');
  return new DepcalcCacheBackend($backend, $this->dispatcher);
}