@@ 223-233 (lines=11) @@ | ||
220 | * @return boolean true on success |
|
221 | * @throws RedisProxyException if number of arguments is wrong |
|
222 | */ |
|
223 | public function mset(...$dictionary) |
|
224 | { |
|
225 | $this->init(); |
|
226 | if (is_array($dictionary[0])) { |
|
227 | $result = $this->driver->mset(...$dictionary); |
|
228 | return $this->transformResult($result); |
|
229 | } |
|
230 | $dictionary = $this->prepareKeyValue($dictionary, 'mset'); |
|
231 | $result = $this->driver->mset($dictionary); |
|
232 | return $this->transformResult($result); |
|
233 | } |
|
234 | ||
235 | /** |
|
236 | * Multi get |
|
@@ 337-347 (lines=11) @@ | ||
334 | * @return boolean true on success |
|
335 | * @throws RedisProxyException if number of arguments is wrong |
|
336 | */ |
|
337 | public function hmset($key, ...$dictionary) |
|
338 | { |
|
339 | $this->init(); |
|
340 | if (is_array($dictionary[0])) { |
|
341 | $result = $this->driver->hmset($key, ...$dictionary); |
|
342 | return $this->transformResult($result); |
|
343 | } |
|
344 | $dictionary = $this->prepareKeyValue($dictionary, 'hmset'); |
|
345 | $result = $this->driver->hmset($key, $dictionary); |
|
346 | return $this->transformResult($result); |
|
347 | } |
|
348 | ||
349 | /** |
|
350 | * Multi hash get |