Chris@0: . Chris@0: */ Chris@0: Chris@0: namespace Doctrine\Common\Cache; Chris@0: Chris@0: /** Chris@0: * Interface for cache drivers that allows to put many items at once. Chris@0: * Chris@0: * @link www.doctrine-project.org Chris@0: * @since 1.6 Chris@0: * @author Daniel Gorgan Chris@0: */ Chris@0: interface MultiPutCache Chris@0: { Chris@0: /** Chris@0: * Returns a boolean value indicating if the operation succeeded. Chris@0: * Chris@0: * @param array $keysAndValues Array of keys and values to save in cache Chris@0: * @param int $lifetime The lifetime. If != 0, sets a specific lifetime for these Chris@0: * cache entries (0 => infinite lifeTime). Chris@0: * Chris@0: * @return bool TRUE if the operation was successful, FALSE if it wasn't. Chris@0: */ Chris@0: function saveMultiple(array $keysAndValues, $lifetime = 0); Chris@0: }