Skip to content

Commit 6ab98c9

Browse files
committed
add back time complexity & acl categories for streams
1 parent fb4a5b5 commit 6ab98c9

20 files changed

+68
-0
lines changed

docs/command-reference/stream/xack.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ After successfully processing a message, a consumer should call `XACK` to preven
2020
XACK key group id [id ...]
2121
```
2222

23+
- **Time complexity:** O(1) for each message ID processed.
24+
- **ACL categories:** @write, @stream, @fast
25+
2326
## Parameter Explanations
2427

2528
- `key`: The name of the stream.

docs/command-reference/stream/xadd.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ Streams are data structures that enable storing and processing ordered logs of e
1919
XADD key [<MAXLEN | MINID> [~ | =] threshold] <* | id> field value [field value ...]
2020
```
2121

22+
- **Time complexity:** O(1) when adding a new entry, O(N) when trimming where N being the number of entries evicted.
23+
- **ACL categories:** @write, @stream, @fast
24+
2225
## Parameter Explanations
2326

2427
- `key`: The key of the stream where the entry will be appended.

docs/command-reference/stream/xautoclaim.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ which is particularly useful in scenarios where message processing needs to be r
2121
XAUTOCLAIM key group consumer min-idle-time start [COUNT count] [JUSTID]
2222
```
2323

24+
- **Time complexity:** O(1) if `COUNT` is small.
25+
- **ACL categories:** @write, @stream, @fast
26+
2427
## Parameter Explanations
2528

2629
- `key`: The key of the stream.

docs/command-reference/stream/xclaim.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ XCLAIM key group consumer min-idle-time id [id ...] [IDLE ms] [TIME ms-unix-time
2020
[RETRYCOUNT count] [FORCE] [JUSTID]
2121
```
2222

23+
- **Time complexity:** O(log N) with N being the number of messages in the pending entries list (PEL) of the consumer group.
24+
- **ACL categories:** @write, @stream, @fast
25+
2326
## Parameter Explanations
2427

2528
- `key`: The key of the stream.

docs/command-reference/stream/xdel.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ This command is particularly useful for managing data in stream-like structures
1919
XDEL key ID [ID ...]
2020
```
2121

22+
- **Time complexity:** O(1) for each single item to delete in the stream, regardless of the stream size.
23+
- **ACL categories:** @write, @stream, @fast
24+
2225
## Parameter Explanations
2326

2427
- `key`: The key of the stream from which entries are to be deleted.

docs/command-reference/stream/xgroup-create.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ This command is essential for managing distributed message processing systems wh
2020
XGROUP CREATE key group <id | $> [MKSTREAM]
2121
```
2222

23+
- **Time complexity:** O(1)
24+
- **ACL categories:** @write, @stream, @slow
25+
2326
## Parameter Explanations
2427

2528
- `key`: The key name of the stream.

docs/command-reference/stream/xgroup-createconsumer.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ This command is part of the streams data type which facilitates managing consume
1919
XGROUP CREATECONSUMER key group consumer
2020
```
2121

22+
- **Time complexity:** O(1)
23+
- **ACL categories:** @write, @stream, @slow
24+
2225
## Parameter Explanations
2326

2427
- `key`: The key of the stream for which the consumer is being created.

docs/command-reference/stream/xgroup-delconsumer.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ Therefore, be sure to claim or acknowledge any pending messages before removing
2121
XGROUP DELCONSUMER key group consumer
2222
```
2323

24+
- **Time complexity:** O(1)
25+
- **ACL categories:** @write, @stream, @slow
26+
2427
## Parameter Explanations
2528

2629
- `key`: The key of the stream.

docs/command-reference/stream/xgroup-destroy.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ Use this command only when absolutely necessary.**
2121
XGROUP DESTROY key group
2222
```
2323

24+
- **Time complexity:** O(N) where N is the number of entries in the group's pending entries list (PEL).
25+
- **ACL categories:** @write, @stream, @slow
26+
2427
## Parameter Explanations
2528

2629
- `key`: The name of the stream from which the consumer group will be deleted.

docs/command-reference/stream/xgroup-setid.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ This command is beneficial when you need to reprocess messages or adjust a consu
1919
XGROUP SETID key group <id | $>
2020
```
2121

22+
- **Time complexity:** O(1)
23+
- **ACL categories:** @write, @stream, @slow
24+
2225
## Parameter Explanations
2326

2427
- `key`: The key of the stream.

0 commit comments

Comments
 (0)