/home/techb158/ileadtechnology.com/vendor/predis/predis/src/Collection/Iterator
NameSizeModeActions
CursorBasedIterator.php47250644editdlrm
HashKey.php13250644editdlrm
Keyspace.php10240644editdlrm
ListKey.php45500644editdlrm
SetKey.php10830644editdlrm
SortedSetKey.php13320644editdlrm
Edit: /home/techb158/ileadtechnology.com/vendor/predis/predis/src/Collection/Iterator/SortedSetKey.php (1332B)
* * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Predis\Collection\Iterator; use Predis\ClientInterface; /** * Abstracts the iteration of members stored in a sorted set by leveraging the * ZSCAN command (Redis >= 2.8) wrapped in a fully-rewindable PHP iterator. * * @author Daniele Alessandri * * @link http://redis.io/commands/scan */ class SortedSetKey extends CursorBasedIterator { protected $key; /** * {@inheritdoc} */ public function __construct(ClientInterface $client, $key, $match = null, $count = null) { $this->requiredCommand($client, 'ZSCAN'); parent::__construct($client, $match, $count); $this->key = $key; } /** * {@inheritdoc} */ protected function executeCommand() { return $this->client->zscan($this->key, $this->cursor, $this->getScanOptions()); } /** * {@inheritdoc} */ protected function extractNext() { $this->position = key($this->elements); $this->current = current($this->elements); unset($this->elements[$this->position]); } }