@@ 171-181 (lines=11) @@ | ||
168 | * @return boolean true on success |
|
169 | * @throws RedisProxyException if number of arguments is wrong |
|
170 | */ |
|
171 | public function mset(...$dictionary) |
|
172 | { |
|
173 | $this->init(); |
|
174 | if (is_array($dictionary[0])) { |
|
175 | $result = $this->driver->mset(...$dictionary); |
|
176 | return $this->transformResult($result); |
|
177 | } |
|
178 | $dictionary = $this->prepareKeyValue($dictionary, 'mset'); |
|
179 | $result = $this->driver->mset($dictionary); |
|
180 | return $this->transformResult($result); |
|
181 | } |
|
182 | ||
183 | /** |
|
184 | * @param string $key |
|
@@ 297-307 (lines=11) @@ | ||
294 | * @return boolean true on success |
|
295 | * @throws RedisProxyException if number of arguments is wrong |
|
296 | */ |
|
297 | public function hmset($key, ...$dictionary) |
|
298 | { |
|
299 | $this->init(); |
|
300 | if (is_array($dictionary[0])) { |
|
301 | $result = $this->driver->hmset($key, ...$dictionary); |
|
302 | return $this->transformResult($result); |
|
303 | } |
|
304 | $dictionary = $this->prepareKeyValue($dictionary, 'hmset'); |
|
305 | $result = $this->driver->hmset($key, $dictionary); |
|
306 | return $this->transformResult($result); |
|
307 | } |
|
308 | ||
309 | /** |
|
310 | * Incrementally iterate hash fields and associated values |