Skip to content

Commit c1c60d9

Browse files
authored
Add new command for Redis 6.2, Redis 7.0 (#82)
* Add new command for Redis 6.2, Redis 7.0 * Update CHANGELOG.md
1 parent 4bcfc2e commit c1c60d9

File tree

2 files changed

+33
-0
lines changed

2 files changed

+33
-0
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@
66

77
- Update to Grafana 8.0.6 (#78)
88
- Update to Grafana 8.1.1 (#79)
9+
- Add CLI commands for Redis 7.0.0 (#80)
10+
- Update to Grafana 8.1.4 (#81)
11+
- Add new command for Redis 6.2, Redis 7.0 (#82)
912

1013
## 2.0.1 (2021-07-07)
1114

src/redis-cli-panel/help/redis.ts

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,13 @@ export const RedisHelp: { [key: string]: HelpCommand } = {
146146
since: '3.2.0',
147147
url: 'https://redis.io/commands/bitfield',
148148
},
149+
BITFIELD_RO: {
150+
syntax: 'BITFIELD_RO key GET type offset',
151+
summary: 'Perform arbitrary bitfield integer operations on strings. Read-only variant of BITFIELD.',
152+
complexity: 'O(1) for each subcommand specified.',
153+
since: '6.2.0',
154+
url: 'https://redis.io/commands/bitfield_ro',
155+
},
149156
BITOP: {
150157
syntax: 'BITOP operation destkey key [key ...]',
151158
summary: 'Perform bitwise operations between strings.',
@@ -1024,6 +1031,20 @@ export const RedisHelp: { [key: string]: HelpCommand } = {
10241031
since: '1.0.0, >= 6.2: Added the count argument.',
10251032
url: 'https://redis.io/commands/lpop',
10261033
},
1034+
LMPOP: {
1035+
syntax: 'LMPOP numkeys [key [key ...]] LEFT|RIGHT [COUNT count]',
1036+
summary: 'Pop elements from a list.',
1037+
complexity: 'O(N+M) where N is the number of provided keys and M is the number of elements returned.',
1038+
since: '7.0.0',
1039+
url: 'https://redis.io/commands/lmpop',
1040+
},
1041+
BLMPOP: {
1042+
syntax: 'BLMPOP timeout numkeys [key [key ...]] LEFT|RIGHT [COUNT count]',
1043+
summary: 'Pop elements from a list, or block until one is available.',
1044+
complexity: 'O(N+M) where N is the number of provided keys and M is the number of elements returned.',
1045+
since: '7.0.0',
1046+
url: 'https://redis.io/commands/blmpop',
1047+
},
10271048
LPOS: {
10281049
syntax: 'LPOS key element [RANK rank] [COUNT num-matches] [MAXLEN len]',
10291050
summary: 'Return the index of matching elements on a list.',
@@ -1632,6 +1653,15 @@ export const RedisHelp: { [key: string]: HelpCommand } = {
16321653
since: '1.0.0',
16331654
url: 'https://redis.io/commands/sort',
16341655
},
1656+
SORT_RO: {
1657+
syntax: 'SORT_RO key [BY pattern] [LIMIT offset count] [GET pattern [GET pattern ...]] [ASC|DESC] [ALPHA]',
1658+
summary: 'Sort the elements in a list, set or sorted set. Read-only variant of SORT.',
1659+
complexity:
1660+
'O(N+M*log(M)) where N is the number of elements in the list or set to sort, and M the number of \
1661+
returned elements. When the elements are not sorted, complexity is O(N).',
1662+
since: '7.0.0',
1663+
url: 'https://redis.io/commands/sort_ro',
1664+
},
16351665
SPOP: {
16361666
syntax: 'SPOP key [count]',
16371667
summary: 'Remove and return one or multiple random members from a set.',

0 commit comments

Comments
 (0)