Mostly useless tweak for iterators example.

This commit is contained in:
Daniele Alessandri
2013-11-07 11:29:22 +01:00
parent 5ad00774e1
commit 9da1648145
+8 -8
View File
@@ -38,9 +38,9 @@ for ($i = 0; $i < 5; $i++) {
}
// === Keyspace iterator based on SCAN ===
echo 'Scan the keyspace matching only our prefixed keys:' . PHP_EOL;
echo 'Scan the keyspace matching only our prefixed keys:', PHP_EOL;
foreach (new Iterator\Keyspace($client, 'predis:*') as $key) {
echo " - $key" . PHP_EOL;
echo " - $key", PHP_EOL;
}
/* OUTPUT
@@ -51,9 +51,9 @@ Scan the keyspace matching only our prefixed keys:
*/
// === Set iterator based on SSCAN ===
echo 'Scan members of `predis:set`:' . PHP_EOL;
echo 'Scan members of `predis:set`:', PHP_EOL;
foreach (new Iterator\SetKey($client, 'predis:set') as $member) {
echo " - $member" . PHP_EOL;
echo " - $member", PHP_EOL;
}
/* OUTPUT
@@ -66,9 +66,9 @@ Scan members of `predis:set`:
*/
// === Sorted set iterator based on ZSCAN ===
echo 'Scan members and ranks of `predis:zset`:' . PHP_EOL;
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;
echo " - $member [rank: $rank]", PHP_EOL;
}
/* OUTPUT
@@ -81,9 +81,9 @@ Scan members and ranks of `predis:zset`:
*/
// === Hash iterator based on HSCAN ===
echo 'Scan fields and values of `predis:hash`:' . PHP_EOL;
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;
echo " - $field => $value", PHP_EOL;
}
/* OUTPUT