Mercurial > hg > cmmr2012-drupal-site
comparison vendor/doctrine/cache/lib/Doctrine/Common/Cache/MultiPutCache.php @ 0:c75dbcec494b
Initial commit from drush-created site
author | Chris Cannam |
---|---|
date | Thu, 05 Jul 2018 14:24:15 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:c75dbcec494b |
---|---|
1 <?php | |
2 /* | |
3 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS | |
4 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT | |
5 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR | |
6 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT | |
7 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | |
8 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT | |
9 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | |
10 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | |
11 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | |
12 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | |
13 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | |
14 * | |
15 * This software consists of voluntary contributions made by many individuals | |
16 * and is licensed under the MIT license. For more information, see | |
17 * <http://www.doctrine-project.org>. | |
18 */ | |
19 | |
20 namespace Doctrine\Common\Cache; | |
21 | |
22 /** | |
23 * Interface for cache drivers that allows to put many items at once. | |
24 * | |
25 * @link www.doctrine-project.org | |
26 * @since 1.6 | |
27 * @author Daniel Gorgan <danut007ro@gmail.com> | |
28 */ | |
29 interface MultiPutCache | |
30 { | |
31 /** | |
32 * Returns a boolean value indicating if the operation succeeded. | |
33 * | |
34 * @param array $keysAndValues Array of keys and values to save in cache | |
35 * @param int $lifetime The lifetime. If != 0, sets a specific lifetime for these | |
36 * cache entries (0 => infinite lifeTime). | |
37 * | |
38 * @return bool TRUE if the operation was successful, FALSE if it wasn't. | |
39 */ | |
40 function saveMultiple(array $keysAndValues, $lifetime = 0); | |
41 } |