You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: examples/scan_keys.rs
+16-9Lines changed: 16 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -1,13 +1,15 @@
1
1
// This example shows the usage of the scan functionality of the Rust Redis Module API Wrapper.
2
-
//
2
+
//
3
3
// The example implements three commands:
4
-
//
4
+
//
5
5
// 1. `scan_keys` - scans all keys in the database and returns their names as an array of RedisString.
6
6
// 2. `scan_key <key>` - scans all fields by using a closure and a while loop, thus allowing an early stop. Don't use the early stop but collects all the field/value pairs as an array of RedisString.
7
7
// 3. `scan_key_for_each <key>` - scans all fields and values in a hash key using a closure that stores the field/value pairs as an array of RedisString.
0 commit comments