|
@@ 49-51 (lines=3) @@
|
| 46 |
|
*/ |
| 47 |
|
public function deleteMultiple($keys) |
| 48 |
|
{ |
| 49 |
|
if (!is_array($keys) && !($keys instanceof \Traversable)) { |
| 50 |
|
throw new InvalidArgumentException('$keys is not iterable:' . print_r($keys, true)); |
| 51 |
|
} |
| 52 |
|
|
| 53 |
|
$results = array(); |
| 54 |
|
foreach ((array)$keys as $key) { |
|
@@ 96-98 (lines=3) @@
|
| 93 |
|
*/ |
| 94 |
|
public function getMultiple($keys, $default = null) |
| 95 |
|
{ |
| 96 |
|
if (!is_array($keys) && !($keys instanceof \Traversable)) { |
| 97 |
|
throw new InvalidArgumentException('$keys is not iterable:' . print_r($keys, true)); |
| 98 |
|
} |
| 99 |
|
|
| 100 |
|
$result = array(); |
| 101 |
|
foreach ((array)$keys as $key) { |
|
@@ 167-169 (lines=3) @@
|
| 164 |
|
*/ |
| 165 |
|
public function setMultiple($values, $ttl = null) |
| 166 |
|
{ |
| 167 |
|
if (!is_array($values) && !($values instanceof \Traversable)) { |
| 168 |
|
throw new InvalidArgumentException('$values is not iterable:' . print_r($values, true)); |
| 169 |
|
} |
| 170 |
|
|
| 171 |
|
$results = array(); |
| 172 |
|
foreach ((array)$values as $key => $value) { |