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
/// A cursor to scan fields and values in a hash key.
8
+
/// A cursor to scan field/value pairs of a (hash) key.
9
9
///
10
-
/// This is a wrapper around the RedisModule_ScanKey function from the C API. It provides access via [`ScanKeyCursor::foreach] and provides
11
-
/// a Rust iterator.
10
+
/// This is a wrapper around the [RedisModule_ScanKey](https://redis.io/docs/latest/develop/reference/modules/modules-api-ref/#redismodule_scankey)
11
+
/// function from the C API. It provides access via [`ScanKeyCursor::foreach`] and provides a Rust iterator via [`ScanKeyCursor::iter`].
12
+
///
13
+
/// Use the former if the operation can be performed in the callback, as it is more efficient. Use the latter if you need to collect the results and/or
14
+
/// want to have access to the Rust iterator API.
12
15
///
13
-
/// Example usage:
16
+
/// ## Example usage
17
+
///
18
+
/// Here we show how to extract values to communicate them back to the Redis client. We assume that the following hash key is setup:
19
+
///
14
20
/// ```no_run
15
-
///
21
+
/// HSET user:123 name Alice age 29 location Austin
0 commit comments