Subversion-Projekte lars-tiefland.laravel_shop

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

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