public __construct ( Predis\ClientInterface $client, string $match = null, integer $count = null ) | ||
$client | Predis\ClientInterface | Client connected to Redis. |
$match | string | Pattern to match during the server-side iteration. |
$count | integer | Hint used by Redis to compute the number of results per iteration. |
public function __construct(ClientInterface $client, $match = null, $count = null)
{
$this->client = $client;
$this->match = $match;
$this->count = $count;
$this->reset();
}
/** * {@inheritdoc} */ public function __construct(ClientInterface $client, $key, $match = null, $count = null) { $this->requiredCommand($client, 'SSCAN'); parent::__construct($client, $match, $count); $this->key = $key; }