|
@@ 273-283 (lines=11) @@
|
| 270 |
|
* @return boolean true on success |
| 271 |
|
* @throws RedisProxyException if number of arguments is wrong |
| 272 |
|
*/ |
| 273 |
|
public function mset(...$dictionary) |
| 274 |
|
{ |
| 275 |
|
$this->init(); |
| 276 |
|
if (is_array($dictionary[0])) { |
| 277 |
|
$result = $this->driver->mset(...$dictionary); |
| 278 |
|
return $this->transformResult($result); |
| 279 |
|
} |
| 280 |
|
$dictionary = $this->prepareKeyValue($dictionary, 'mset'); |
| 281 |
|
$result = $this->driver->mset($dictionary); |
| 282 |
|
return $this->transformResult($result); |
| 283 |
|
} |
| 284 |
|
|
| 285 |
|
/** |
| 286 |
|
* Multi get |
|
@@ 381-391 (lines=11) @@
|
| 378 |
|
* @return boolean true on success |
| 379 |
|
* @throws RedisProxyException if number of arguments is wrong |
| 380 |
|
*/ |
| 381 |
|
public function hmset($key, ...$dictionary) |
| 382 |
|
{ |
| 383 |
|
$this->init(); |
| 384 |
|
if (is_array($dictionary[0])) { |
| 385 |
|
$result = $this->driver->hmset($key, ...$dictionary); |
| 386 |
|
return $this->transformResult($result); |
| 387 |
|
} |
| 388 |
|
$dictionary = $this->prepareKeyValue($dictionary, 'hmset'); |
| 389 |
|
$result = $this->driver->hmset($key, $dictionary); |
| 390 |
|
return $this->transformResult($result); |
| 391 |
|
} |
| 392 |
|
|
| 393 |
|
/** |
| 394 |
|
* Multi hash get |