@@ 240-249 (lines=10) @@ | ||
237 | return $this->del(...$key); |
|
238 | } |
|
239 | ||
240 | public function scan(&$iterator, $pattern = null, $count = null) |
|
241 | { |
|
242 | $this->init(); |
|
243 | if ($this->driver instanceof Client) { |
|
244 | $returned = $this->driver->scan($iterator, ['match' => $pattern, 'count' => $count]); |
|
245 | $iterator = $returned[0]; |
|
246 | return $returned[1]; |
|
247 | } |
|
248 | return $this->driver->scan($iterator, $pattern, $count); |
|
249 | } |
|
250 | ||
251 | /** |
|
252 | * Get the value of a hash field |
|
@@ 283-292 (lines=10) @@ | ||
280 | return $res; |
|
281 | } |
|
282 | ||
283 | public function hscan($key, &$iterator, $pattern = null, $count = null) |
|
284 | { |
|
285 | $this->init(); |
|
286 | if ($this->driver instanceof Client) { |
|
287 | $returned = $this->driver->hscan($key, $iterator, ['match' => $pattern, 'count' => $count]); |
|
288 | $iterator = $returned[0]; |
|
289 | return $returned[1]; |
|
290 | } |
|
291 | return $this->driver->hscan($key, $iterator, $pattern, $count); |
|
292 | } |
|
293 | ||
294 | public function zscan($key, &$iterator, $pattern = null, $count = null) |
|
295 | { |
|
@@ 294-303 (lines=10) @@ | ||
291 | return $this->driver->hscan($key, $iterator, $pattern, $count); |
|
292 | } |
|
293 | ||
294 | public function zscan($key, &$iterator, $pattern = null, $count = null) |
|
295 | { |
|
296 | $this->init(); |
|
297 | if ($this->driver instanceof Client) { |
|
298 | $returned = $this->driver->zscan($key, $iterator, ['match' => $pattern, 'count' => $count]); |
|
299 | $iterator = $returned[0]; |
|
300 | return $returned[1]; |
|
301 | } |
|
302 | return $this->driver->zscan($key, $iterator, $pattern, $count); |
|
303 | } |
|
304 | ||
305 | public function sscan($key, &$iterator, $pattern = null, $count = null) |
|
306 | { |
|
@@ 305-314 (lines=10) @@ | ||
302 | return $this->driver->zscan($key, $iterator, $pattern, $count); |
|
303 | } |
|
304 | ||
305 | public function sscan($key, &$iterator, $pattern = null, $count = null) |
|
306 | { |
|
307 | $this->init(); |
|
308 | if ($this->driver instanceof Client) { |
|
309 | $returned = $this->driver->sscan($key, $iterator, ['match' => $pattern, 'count' => $count]); |
|
310 | $iterator = $returned[0]; |
|
311 | return $returned[1]; |
|
312 | } |
|
313 | return $this->driver->sscan($key, $iterator, $pattern, $count); |
|
314 | } |
|
315 | } |
|
316 |