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
- interface \Drupal\variationcache\Cache\VariationCacheFactoryInterface
Expanded class hierarchy of VariationCacheFactoryInterface
All classes that implement VariationCacheFactoryInterface
File
- src/
Cache/ VariationCacheFactoryInterface.php, line 14
Namespace
Drupal\variationcache\CacheView 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
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
VariationCacheFactoryInterface:: |
public | function | Gets a variation cache backend for a given cache bin. | 1 |