You are here

interface VariationCacheFactoryInterface in VariationCache 8

Defines an interface for variation cache implementations.

A variation cache wraps any provided cache backend and adds support for cache contexts to it. The actual caching still happens in the original cache backend.

Hierarchy

Expanded class hierarchy of VariationCacheFactoryInterface

All classes that implement VariationCacheFactoryInterface

File

src/Cache/VariationCacheFactoryInterface.php, line 14

Namespace

Drupal\variationcache\Cache
View source
interface VariationCacheFactoryInterface {

  /**
   * Gets a variation cache backend for a given cache bin.
   *
   * @param string $bin
   *   The cache bin for which a variation cache backend should be returned.
   *
   * @return \Drupal\variationcache\Cache\VariationCacheInterface
   *   The variation cache backend associated with the specified bin.
   */
  public function get($bin);

}

Members

Namesort descending Modifiers Type Description Overrides
VariationCacheFactoryInterface::get public function Gets a variation cache backend for a given cache bin. 1