MultiPutCache.php 695 B

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