MultiGetCache.php 593 B

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