@@ 413-423 (lines=11) @@ | ||
410 | * @return boolean true on success |
|
411 | * @throws RedisProxyException if number of arguments is wrong |
|
412 | */ |
|
413 | public function mset(...$dictionary) |
|
414 | { |
|
415 | $this->init(); |
|
416 | if (is_array($dictionary[0])) { |
|
417 | $result = $this->driver->mset(...$dictionary); |
|
418 | return $this->transformResult($result); |
|
419 | } |
|
420 | $dictionary = $this->prepareKeyValue($dictionary, 'mset'); |
|
421 | $result = $this->driver->mset($dictionary); |
|
422 | return $this->transformResult($result); |
|
423 | } |
|
424 | ||
425 | /** |
|
426 | * Multi get |
|
@@ 521-531 (lines=11) @@ | ||
518 | * @return boolean true on success |
|
519 | * @throws RedisProxyException if number of arguments is wrong |
|
520 | */ |
|
521 | public function hmset($key, ...$dictionary) |
|
522 | { |
|
523 | $this->init(); |
|
524 | if (is_array($dictionary[0])) { |
|
525 | $result = $this->driver->hmset($key, ...$dictionary); |
|
526 | return $this->transformResult($result); |
|
527 | } |
|
528 | $dictionary = $this->prepareKeyValue($dictionary, 'hmset'); |
|
529 | $result = $this->driver->hmset($key, $dictionary); |
|
530 | return $this->transformResult($result); |
|
531 | } |
|
532 | ||
533 | /** |
|
534 | * Multi hash get |