@@ 308-318 (lines=11) @@ | ||
305 | * @return boolean true on success |
|
306 | * @throws RedisProxyException if number of arguments is wrong |
|
307 | */ |
|
308 | public function mset(...$dictionary) |
|
309 | { |
|
310 | $this->init(); |
|
311 | if (is_array($dictionary[0])) { |
|
312 | $result = $this->driver->mset(...$dictionary); |
|
313 | return $this->transformResult($result); |
|
314 | } |
|
315 | $dictionary = $this->prepareKeyValue($dictionary, 'mset'); |
|
316 | $result = $this->driver->mset($dictionary); |
|
317 | return $this->transformResult($result); |
|
318 | } |
|
319 | ||
320 | /** |
|
321 | * Multi get |
|
@@ 416-426 (lines=11) @@ | ||
413 | * @return boolean true on success |
|
414 | * @throws RedisProxyException if number of arguments is wrong |
|
415 | */ |
|
416 | public function hmset($key, ...$dictionary) |
|
417 | { |
|
418 | $this->init(); |
|
419 | if (is_array($dictionary[0])) { |
|
420 | $result = $this->driver->hmset($key, ...$dictionary); |
|
421 | return $this->transformResult($result); |
|
422 | } |
|
423 | $dictionary = $this->prepareKeyValue($dictionary, 'hmset'); |
|
424 | $result = $this->driver->hmset($key, $dictionary); |
|
425 | return $this->transformResult($result); |
|
426 | } |
|
427 | ||
428 | /** |
|
429 | * Multi hash get |