CacheFactoryInterface.php 456 B

123456789101112131415161718192021
  1. <?php
  2. namespace Drupal\Core\Cache;
  3. /**
  4. * An interface defining cache factory classes.
  5. */
  6. interface CacheFactoryInterface {
  7. /**
  8. * Gets a cache backend class for a given cache bin.
  9. *
  10. * @param string $bin
  11. * The cache bin for which a cache backend object should be returned.
  12. *
  13. * @return \Drupal\Core\Cache\CacheBackendInterface
  14. * The cache backend object associated with the specified bin.
  15. */
  16. public function get($bin);
  17. }