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