|
@@ 233-242 (lines=10) @@
|
| 230 |
|
return $this->del(...$key); |
| 231 |
|
} |
| 232 |
|
|
| 233 |
|
public function scan(&$iterator, $pattern = null, $count = null) |
| 234 |
|
{ |
| 235 |
|
$this->init(); |
| 236 |
|
if ($this->driver instanceof Client) { |
| 237 |
|
$returned = $this->driver->scan($iterator, ['match' => $pattern, 'count' => $count]); |
| 238 |
|
$iterator = $returned[0]; |
| 239 |
|
return $returned[1]; |
| 240 |
|
} |
| 241 |
|
return $this->driver->scan($iterator, $pattern, $count); |
| 242 |
|
} |
| 243 |
|
|
| 244 |
|
public function hget($key, $field) |
| 245 |
|
{ |
|
@@ 254-263 (lines=10) @@
|
| 251 |
|
return $result; |
| 252 |
|
} |
| 253 |
|
|
| 254 |
|
public function hscan($key, &$iterator, $pattern = null, $count = null) |
| 255 |
|
{ |
| 256 |
|
$this->init(); |
| 257 |
|
if ($this->driver instanceof Client) { |
| 258 |
|
$returned = $this->driver->hscan($key, $iterator, ['match' => $pattern, 'count' => $count]); |
| 259 |
|
$iterator = $returned[0]; |
| 260 |
|
return $returned[1]; |
| 261 |
|
} |
| 262 |
|
return $this->driver->hscan($key, $iterator, $pattern, $count); |
| 263 |
|
} |
| 264 |
|
|
| 265 |
|
public function zscan($key, &$iterator, $pattern = null, $count = null) |
| 266 |
|
{ |
|
@@ 265-274 (lines=10) @@
|
| 262 |
|
return $this->driver->hscan($key, $iterator, $pattern, $count); |
| 263 |
|
} |
| 264 |
|
|
| 265 |
|
public function zscan($key, &$iterator, $pattern = null, $count = null) |
| 266 |
|
{ |
| 267 |
|
$this->init(); |
| 268 |
|
if ($this->driver instanceof Client) { |
| 269 |
|
$returned = $this->driver->zscan($key, $iterator, ['match' => $pattern, 'count' => $count]); |
| 270 |
|
$iterator = $returned[0]; |
| 271 |
|
return $returned[1]; |
| 272 |
|
} |
| 273 |
|
return $this->driver->zscan($key, $iterator, $pattern, $count); |
| 274 |
|
} |
| 275 |
|
|
| 276 |
|
public function sscan($key, &$iterator, $pattern = null, $count = null) |
| 277 |
|
{ |
|
@@ 276-285 (lines=10) @@
|
| 273 |
|
return $this->driver->zscan($key, $iterator, $pattern, $count); |
| 274 |
|
} |
| 275 |
|
|
| 276 |
|
public function sscan($key, &$iterator, $pattern = null, $count = null) |
| 277 |
|
{ |
| 278 |
|
$this->init(); |
| 279 |
|
if ($this->driver instanceof Client) { |
| 280 |
|
$returned = $this->driver->sscan($key, $iterator, ['match' => $pattern, 'count' => $count]); |
| 281 |
|
$iterator = $returned[0]; |
| 282 |
|
return $returned[1]; |
| 283 |
|
} |
| 284 |
|
return $this->driver->sscan($key, $iterator, $pattern, $count); |
| 285 |
|
} |
| 286 |
|
} |
| 287 |
|
|