|
@@ 421-431 (lines=11) @@
|
| 418 |
|
* @return boolean true on success |
| 419 |
|
* @throws RedisProxyException if number of arguments is wrong |
| 420 |
|
*/ |
| 421 |
|
public function mset(...$dictionary) |
| 422 |
|
{ |
| 423 |
|
$this->init(); |
| 424 |
|
if (is_array($dictionary[0])) { |
| 425 |
|
$result = $this->driver->mset(...$dictionary); |
| 426 |
|
return $this->transformResult($result); |
| 427 |
|
} |
| 428 |
|
$dictionary = $this->prepareKeyValue($dictionary, 'mset'); |
| 429 |
|
$result = $this->driver->mset($dictionary); |
| 430 |
|
return $this->transformResult($result); |
| 431 |
|
} |
| 432 |
|
|
| 433 |
|
/** |
| 434 |
|
* Multi get |
|
@@ 529-539 (lines=11) @@
|
| 526 |
|
* @return boolean true on success |
| 527 |
|
* @throws RedisProxyException if number of arguments is wrong |
| 528 |
|
*/ |
| 529 |
|
public function hmset($key, ...$dictionary) |
| 530 |
|
{ |
| 531 |
|
$this->init(); |
| 532 |
|
if (is_array($dictionary[0])) { |
| 533 |
|
$result = $this->driver->hmset($key, ...$dictionary); |
| 534 |
|
return $this->transformResult($result); |
| 535 |
|
} |
| 536 |
|
$dictionary = $this->prepareKeyValue($dictionary, 'hmset'); |
| 537 |
|
$result = $this->driver->hmset($key, $dictionary); |
| 538 |
|
return $this->transformResult($result); |
| 539 |
|
} |
| 540 |
|
|
| 541 |
|
/** |
| 542 |
|
* Multi hash get |