Windows NT DGPENSV2LPKMN 10.0 build 14393 (Windows Server 2016) AMD64
Apache/2.4.46 (Win64) OpenSSL/1.1.1h PHP/7.3.25
: 172.16.0.66 | : 172.16.0.254
Cant Read [ /etc/named.conf ]
7.3.25
SYSTEM
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
BLACK DEFEND!
README
+ Create Folder
+ Create File
[ A ]
[ C ]
[ D ]
C: /
laragon /
etc /
apps /
phpRedisAdmin /
vendor /
examples /
[ HOME SHELL ]
Name
Size
Permission
Action
CustomDistributionStrategy.php
2.31
KB
-rw-rw-rw-
DispatcherLoop.php
2
KB
-rw-rw-rw-
KeyPrefixes.php
959
B
-rw-rw-rw-
MasterSlaveReplication.php
1.7
KB
-rw-rw-rw-
MasterSlaveReplicationComplex....
2.58
KB
-rw-rw-rw-
MonitorContext.php
1.52
KB
-rw-rw-rw-
MultiBulkReplyIterators.php
1.77
KB
-rw-rw-rw-
MultipleSetAndGet.php
762
B
-rw-rw-rw-
PipelineContext.php
925
B
-rw-rw-rw-
PubSubContext.php
1.91
KB
-rw-rw-rw-
RedisCollectionsIterators.php
2.74
KB
-rw-rw-rw-
ServerSideScripting.php
1.57
KB
-rw-rw-rw-
SessionHandler.php
1.62
KB
-rw-rw-rw-
SharedConfigurations.php
681
B
-rw-rw-rw-
SimpleDebuggableConnection.php
2.06
KB
-rw-rw-rw-
SimpleSetAndGet.php
479
B
-rw-rw-rw-
TransactionWithCAS.php
1.47
KB
-rw-rw-rw-
Delete
Unzip
Zip
${this.title}
Close
Code Editor : RedisCollectionsIterators.php
<?php /* * This file is part of the Predis package. * * (c) Daniele Alessandri <suppakilla@gmail.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ require 'SharedConfigurations.php'; use Predis\Collection\Iterator; // Redis 2.8 features new commands allowing clients to incrementally // iterate over collections without blocking the server like it happens // when a command such as KEYS is executed on a Redis instance storing // millions of keys. These commands are SCAN (iterates over the keyspace), // SSCAN (iterates over members of a set), ZSCAN (iterates over members // and ranks of a sorted set) and HSCAN (iterates over fields and values // of an hash). Predis provides a specialized abstraction for each command // based on SPL iterators making it possible to easily consume SCAN-based // iterations in your PHP code. // // See http://redis.io/commands/scan for more details. // // Create a client using `2.8` as a server profile (needs Redis 2.8!) $client = new Predis\Client($single_server, array('profile' => '2.8')); // Prepare some keys for our example $client->del('predis:set', 'predis:zset', 'predis:hash'); for ($i = 0; $i < 5; $i++) { $client->sadd('predis:set', "member:$i"); $client->zadd('predis:zset', -$i, "member:$i"); $client->hset('predis:hash', "field:$i", "value:$i"); } // === Keyspace iterator based on SCAN === echo 'Scan the keyspace matching only our prefixed keys:', PHP_EOL; foreach (new Iterator\Keyspace($client, 'predis:*') as $key) { echo " - $key", PHP_EOL; } /* OUTPUT Scan the keyspace matching only our prefixed keys: - predis:zset - predis:set - predis:hash */ // === Set iterator based on SSCAN === echo 'Scan members of `predis:set`:', PHP_EOL; foreach (new Iterator\SetKey($client, 'predis:set') as $member) { echo " - $member", PHP_EOL; } /* OUTPUT Scan members of `predis:set`: - member:1 - member:4 - member:0 - member:3 - member:2 */ // === Sorted set iterator based on ZSCAN === echo 'Scan members and ranks of `predis:zset`:', PHP_EOL; foreach (new Iterator\SortedSetKey($client, 'predis:zset') as $member => $rank) { echo " - $member [rank: $rank]", PHP_EOL; } /* OUTPUT Scan members and ranks of `predis:zset`: - member:4 [rank: -4] - member:3 [rank: -3] - member:2 [rank: -2] - member:1 [rank: -1] - member:0 [rank: 0] */ // === Hash iterator based on HSCAN === echo 'Scan fields and values of `predis:hash`:', PHP_EOL; foreach (new Iterator\HashKey($client, 'predis:hash') as $field => $value) { echo " - $field => $value", PHP_EOL; } /* OUTPUT Scan fields and values of `predis:hash`: - field:0 => value:0 - field:1 => value:1 - field:2 => value:2 - field:3 => value:3 - field:4 => value:4 */
Close