yezhizi opened a new pull request, #3133:
URL: https://github.com/apache/kvrocks/pull/3133
Part of #3048
```bash
127.0.0.1:6666> ts.create test2 CHUNK_SIZE 3 RETENTION 10
OK
127.0.0.1:6666> ts.madd test2 1 10 test2 3 10 test2 2 20 test2 3 20 test2 4
20 test2 13 20 test2 1 20 test2 14 20
# samples: 1 2 3 4 13 14 . (1, 2, 3) are expired
127.0.0.1:6666> ts.info test2
1) totalSamples
2) (integer) 6
3) memoryUsage
4) (integer) 0
5) firstTimestamp
6) (integer) 4
7) lastTimestamp
8) (integer) 14
9) retentionTime
10) (integer) 10
11) chunkCount
12) (integer) 2
13) chunkSize
14) (integer) 3
15) chunkType
16) uncompressed
17) duplicatePolicy
18) block
19) labels
20) (empty array)
21) sourceKey
22) (nil)
23) rules
24) (empty array)
```
Note: The following fields have differences compared to Redis:
- `totalSamples`: Displays approximate sample count (retention not yet
considered)
- `chunkCount`: Shows total number of chunks (retention not yet considered)
- `memoryUsage`: Displays estimated disk usage? (not yet implemented)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]