KeyValueExpirableFactoryInterface.php 542 B

123456789101112131415161718192021
  1. <?php
  2. namespace Drupal\Core\KeyValueStore;
  3. /**
  4. * Defines the expirable key/value store factory interface.
  5. */
  6. interface KeyValueExpirableFactoryInterface {
  7. /**
  8. * Constructs a new expirable key/value store for a given collection name.
  9. *
  10. * @param string $collection
  11. * The name of the collection holding key and value pairs.
  12. *
  13. * @return \Drupal\Core\KeyValueStore\KeyValueStoreExpirableInterface
  14. * An expirable key/value store implementation for the given $collection.
  15. */
  16. public function get($collection);
  17. }