MultiPutCache.php 698 B

123456789101112131415161718192021222324
  1. <?php
  2. namespace Doctrine\Common\Cache;
  3. /**
  4. * Interface for cache drivers that allows to put many items at once.
  5. *
  6. * @deprecated
  7. *
  8. * @link www.doctrine-project.org
  9. */
  10. interface MultiPutCache
  11. {
  12. /**
  13. * Returns a boolean value indicating if the operation succeeded.
  14. *
  15. * @param array $keysAndValues Array of keys and values to save in cache
  16. * @param int $lifetime The lifetime. If != 0, sets a specific lifetime for these
  17. * cache entries (0 => infinite lifeTime).
  18. *
  19. * @return bool TRUE if the operation was successful, FALSE if it wasn't.
  20. */
  21. public function saveMultiple(array $keysAndValues, $lifetime = 0);
  22. }