@@ 477-487 (lines=11) @@ | ||
474 | * @return boolean true on success |
|
475 | * @throws RedisProxyException if number of arguments is wrong |
|
476 | */ |
|
477 | public function mset(...$dictionary) |
|
478 | { |
|
479 | $this->init(); |
|
480 | if (is_array($dictionary[0])) { |
|
481 | $result = $this->driver->mset(...$dictionary); |
|
482 | return $this->transformResult($result); |
|
483 | } |
|
484 | $dictionary = $this->prepareKeyValue($dictionary, 'mset'); |
|
485 | $result = $this->driver->mset($dictionary); |
|
486 | return $this->transformResult($result); |
|
487 | } |
|
488 | ||
489 | /** |
|
490 | * Multi get |
|
@@ 585-595 (lines=11) @@ | ||
582 | * @return boolean true on success |
|
583 | * @throws RedisProxyException if number of arguments is wrong |
|
584 | */ |
|
585 | public function hmset($key, ...$dictionary) |
|
586 | { |
|
587 | $this->init(); |
|
588 | if (is_array($dictionary[0])) { |
|
589 | $result = $this->driver->hmset($key, ...$dictionary); |
|
590 | return $this->transformResult($result); |
|
591 | } |
|
592 | $dictionary = $this->prepareKeyValue($dictionary, 'hmset'); |
|
593 | $result = $this->driver->hmset($key, $dictionary); |
|
594 | return $this->transformResult($result); |
|
595 | } |
|
596 | ||
597 | /** |
|
598 | * Multi hash get |