MultiGetCache.php 583 B

123456789101112131415161718192021
  1. <?php
  2. namespace Doctrine\Common\Cache;
  3. /**
  4. * Interface for cache drivers that allows to get many items at once.
  5. *
  6. * @link www.doctrine-project.org
  7. * @deprecated
  8. */
  9. interface MultiGetCache
  10. {
  11. /**
  12. * Returns an associative array of values for keys is found in cache.
  13. *
  14. * @param string[] $keys Array of keys to retrieve from cache
  15. * @return mixed[] Array of retrieved values, indexed by the specified keys.
  16. * Values that couldn't be retrieved are not contained in this array.
  17. */
  18. public function fetchMultiple(array $keys);
  19. }