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: src/main/antora/modules/ROOT/pages/redis/redis-streams.adoc
+3-3
Original file line number
Diff line number
Diff line change
@@ -32,7 +32,7 @@ con.xAdd(record);
32
32
// append message through RedisTemplate
33
33
RedisTemplate template = …
34
34
StringRecord record = StreamRecords.string(…).withStreamKey("my-stream");
35
-
template.streamOps().add(record);
35
+
template.opsForStream().add(record);
36
36
----
37
37
38
38
Stream records carry a `Map`, key-value tuples, as their payload. Appending a record to a stream returns the `RecordId` that can be used as further reference.
@@ -58,10 +58,10 @@ While stream consumption is typically associated with asynchronous processing, i
0 commit comments