|
@@ 190-199 (lines=10) @@
|
| 187 |
|
return $this->del(...$key); |
| 188 |
|
} |
| 189 |
|
|
| 190 |
|
public function scan(&$iterator, $pattern = null, $count = null) |
| 191 |
|
{ |
| 192 |
|
$this->init(); |
| 193 |
|
if ($this->driver instanceof Client) { |
| 194 |
|
$returned = $this->driver->scan($iterator, ['match' => $pattern, 'count' => $count]); |
| 195 |
|
$iterator = $returned[0]; |
| 196 |
|
return $returned[1]; |
| 197 |
|
} |
| 198 |
|
return $this->driver->scan($iterator, $pattern, $count); |
| 199 |
|
} |
| 200 |
|
|
| 201 |
|
/** |
| 202 |
|
* Get the value of a hash field |
|
@@ 233-242 (lines=10) @@
|
| 230 |
|
return $res; |
| 231 |
|
} |
| 232 |
|
|
| 233 |
|
public function hscan($key, &$iterator, $pattern = null, $count = null) |
| 234 |
|
{ |
| 235 |
|
$this->init(); |
| 236 |
|
if ($this->driver instanceof Client) { |
| 237 |
|
$returned = $this->driver->hscan($key, $iterator, ['match' => $pattern, 'count' => $count]); |
| 238 |
|
$iterator = $returned[0]; |
| 239 |
|
return $returned[1]; |
| 240 |
|
} |
| 241 |
|
return $this->driver->hscan($key, $iterator, $pattern, $count); |
| 242 |
|
} |
| 243 |
|
|
| 244 |
|
public function zscan($key, &$iterator, $pattern = null, $count = null) |
| 245 |
|
{ |
|
@@ 244-253 (lines=10) @@
|
| 241 |
|
return $this->driver->hscan($key, $iterator, $pattern, $count); |
| 242 |
|
} |
| 243 |
|
|
| 244 |
|
public function zscan($key, &$iterator, $pattern = null, $count = null) |
| 245 |
|
{ |
| 246 |
|
$this->init(); |
| 247 |
|
if ($this->driver instanceof Client) { |
| 248 |
|
$returned = $this->driver->zscan($key, $iterator, ['match' => $pattern, 'count' => $count]); |
| 249 |
|
$iterator = $returned[0]; |
| 250 |
|
return $returned[1]; |
| 251 |
|
} |
| 252 |
|
return $this->driver->zscan($key, $iterator, $pattern, $count); |
| 253 |
|
} |
| 254 |
|
|
| 255 |
|
public function sscan($key, &$iterator, $pattern = null, $count = null) |
| 256 |
|
{ |
|
@@ 255-264 (lines=10) @@
|
| 252 |
|
return $this->driver->zscan($key, $iterator, $pattern, $count); |
| 253 |
|
} |
| 254 |
|
|
| 255 |
|
public function sscan($key, &$iterator, $pattern = null, $count = null) |
| 256 |
|
{ |
| 257 |
|
$this->init(); |
| 258 |
|
if ($this->driver instanceof Client) { |
| 259 |
|
$returned = $this->driver->sscan($key, $iterator, ['match' => $pattern, 'count' => $count]); |
| 260 |
|
$iterator = $returned[0]; |
| 261 |
|
return $returned[1]; |
| 262 |
|
} |
| 263 |
|
return $this->driver->sscan($key, $iterator, $pattern, $count); |
| 264 |
|
} |
| 265 |
|
} |
| 266 |
|
|