summaryrefslogtreecommitdiff
path: root/runtest-moduleapi
diff options
context:
space:
mode:
authorViktor Söderqvist <viktor.soderqvist@est.tech>2021-01-28 15:19:43 +0100
committerGitHub <noreply@github.com>2021-01-28 16:19:43 +0200
commit4355145a6268a6ae811a2bf39911966879512877 (patch)
tree7069881f76ef0a445331a2642d91f7b6de5d5d8d /runtest-moduleapi
parentbb7cd97439aa91698bee192cddd7ceb18d628a00 (diff)
downloadredis-4355145a6268a6ae811a2bf39911966879512877.tar.gz
Add modules API for streams (#8288)
APIs added for these stream operations: add, delete, iterate and trim (by ID or maxlength). The functions are prefixed by RM_Stream. * RM_StreamAdd * RM_StreamDelete * RM_StreamIteratorStart * RM_StreamIteratorStop * RM_StreamIteratorNextID * RM_StreamIteratorNextField * RM_StreamIteratorDelete * RM_StreamTrimByLength * RM_StreamTrimByID The type RedisModuleStreamID is added and functions for converting from and to RedisModuleString. * RM_CreateStringFromStreamID * RM_StringToStreamID Whenever the stream functions return REDISMODULE_ERR, errno is set to provide additional error information. Refactoring: The zset iterator fields in the RedisModuleKey struct are wrapped in a union, to allow the same space to be used for type- specific info for streams and allow future use for other key types.
Diffstat (limited to 'runtest-moduleapi')
-rwxr-xr-xruntest-moduleapi1
1 files changed, 1 insertions, 0 deletions
diff --git a/runtest-moduleapi b/runtest-moduleapi
index 9a48867d2..878b5c6ad 100755
--- a/runtest-moduleapi
+++ b/runtest-moduleapi
@@ -31,4 +31,5 @@ $TCLSH tests/test_helper.tcl \
--single unit/moduleapi/getkeys \
--single unit/moduleapi/test_lazyfree \
--single unit/moduleapi/defrag \
+--single unit/moduleapi/stream \
"${@}"