2020-08-08 07:42:38 +09:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace Doctrine\Common\Cache;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Interface for cache drivers that allows to put many items at once.
|
|
|
|
*
|
|
|
|
* @deprecated
|
|
|
|
*
|
|
|
|
* @link www.doctrine-project.org
|
|
|
|
*/
|
|
|
|
interface MultiPutCache
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* Returns a boolean value indicating if the operation succeeded.
|
|
|
|
*
|
2021-07-18 20:40:01 +09:00
|
|
|
* @param mixed[] $keysAndValues Array of keys and values to save in cache
|
|
|
|
* @param int $lifetime The lifetime. If != 0, sets a specific lifetime for these
|
|
|
|
* cache entries (0 => infinite lifeTime).
|
2020-08-08 07:42:38 +09:00
|
|
|
*
|
|
|
|
* @return bool TRUE if the operation was successful, FALSE if it wasn't.
|
|
|
|
*/
|
|
|
|
public function saveMultiple(array $keysAndValues, $lifetime = 0);
|
|
|
|
}
|