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
Description("The Redis data type to read for each matched key. When set to `hash`, matched keys are scanned with HSCAN and each hash field value is emitted as an individual message.").
83
+
Description("The Redis data type to read for each matched key. `string` reads matched keys with GET. `hash` scans matched keys with HSCAN and emits each hash field value as an individual message.").
Description("The Bento message shape to emit for Redis values. The `structured` format preserves the original redis_scan key/value object shape, while `raw` emits Redis values as message payloads and stores Redis identity in metadata.").
Copy file name to clipboardExpand all lines: website/docs/components/inputs/redis_scan.md
+6-5Lines changed: 6 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,7 +15,7 @@ categories: ["Services"]
15
15
import Tabs from '@theme/Tabs';
16
16
import TabItem from '@theme/TabItem';
17
17
18
-
Scans the set of keys in the current selected database and gets their values, using the Scan and Get commands.
18
+
Scans the set of keys in the current selected database and emits Redis string or hash values.
19
19
20
20
21
21
<Tabs defaultValue="common" values={[
@@ -70,14 +70,15 @@ Optionally, iterates only elements matching a blob-style pattern. For example:
70
70
- `*foo*` iterates only keys which contain `foo` in it.
71
71
- `foo*`iterates only keys starting with `foo`.
72
72
73
-
This input generates a message for each key value pair in the following format:
73
+
By default this input treats matched keys as Redis string data type keys, reads them with GET, and generates a message
74
+
for each key value pair in the following format:
74
75
75
76
```json
76
77
{"key":"foo","value":"bar"}
77
78
```
78
79
79
-
When `data_type` is set to `hash` this input treats matched keys as Redis hashes. It uses HSCAN to discover fields,
80
-
and fetches each field value with HGET.
80
+
When `data_type` is set to `hash` this input treats matched keys as Redis hash data type keys. It uses HSCAN
81
+
to iterate over each field and its value.
81
82
82
83
By default, `value_format` is `structured` in order to preserve the original `redis_scan` message shape
83
84
of `{"key":"...","value":"..."}`. Set it to `raw` to emit Redis values as raw message payloads.
@@ -309,7 +310,7 @@ match: '*4*'
309
310
310
311
### `data_type`
311
312
312
-
The Redis data type to read for each matched key. When set to `hash`, matched keys are scanned with HSCAN and each hash field value is emitted as an individual message.
313
+
The Redis data type to read for each matched key. `string` reads matched keys with GET. `hash` scans matched keys with HSCAN and emits each hash field value as an individual message.
0 commit comments