Skip to content

Commit

Permalink
Merge branch 'master' into AshwinKul28-master
Browse files Browse the repository at this point in the history
  • Loading branch information
AshwinKul28 committed Nov 13, 2024
2 parents b4f56e4 + 5d20e1e commit d9d42f0
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
12 changes: 10 additions & 2 deletions internal/server/cmd_meta.go
Original file line number Diff line number Diff line change
Expand Up @@ -347,6 +347,14 @@ var (
Cmd: "HMGET",
CmdType: SingleShard,
}
lrangeCmdMeta = CmdsMeta{
Cmd: "LRANGE",
CmdType: SingleShard,
}
linsertCmdMeta = CmdsMeta{
Cmd: "LINSERT",
CmdType: SingleShard,
}
lpushCmdMeta = CmdsMeta{
Cmd: "LPUSH",
CmdType: SingleShard,
Expand All @@ -367,7 +375,6 @@ var (
Cmd: "LLEN",
CmdType: SingleShard,
}

jsonForgetCmdMeta = CmdsMeta{
Cmd: "JSON.FORGET",
CmdType: SingleShard,
Expand Down Expand Up @@ -522,12 +529,13 @@ func init() {
WorkerCmdsMeta["BITFIELD"] = bitfieldCmdMeta
WorkerCmdsMeta["BITPOS"] = bitposCmdMeta
WorkerCmdsMeta["BITFIELD_RO"] = bitfieldroCmdMeta
WorkerCmdsMeta["LRANGE"] = lrangeCmdMeta
WorkerCmdsMeta["LINSERT"] = linsertCmdMeta
WorkerCmdsMeta["LPUSH"] = lpushCmdMeta
WorkerCmdsMeta["RPUSH"] = rpushCmdMeta
WorkerCmdsMeta["LPOP"] = lpopCmdMeta
WorkerCmdsMeta["RPOP"] = rpopCmdMeta
WorkerCmdsMeta["LLEN"] = llenCmdMeta

WorkerCmdsMeta["JSON.FORGET"] = jsonForgetCmdMeta
WorkerCmdsMeta["JSON.DEL"] = jsonDelCmdMeta
WorkerCmdsMeta["JSON.TOGGLE"] = jsonToggleCmdMeta
Expand Down
8 changes: 8 additions & 0 deletions internal/worker/cmd_meta.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ const (
CmdGetSet = "GETSET"
CmdGetEx = "GETEX"
CmdGetDel = "GETDEL"
CmdLrange = "LRANGE"
CmdLinsert = "LINSERT"
CmdJSONArrAppend = "JSON.ARRAPPEND"
CmdJSONArrLen = "JSON.ARRLEN"
CmdJSONArrPop = "JSON.ARRPOP"
Expand Down Expand Up @@ -335,6 +337,12 @@ var CommandsMeta = map[string]CmdMeta{
CmdBitFieldRO: {
CmdType: SingleShard,
},
CmdLrange: {
CmdType: SingleShard,
},
CmdLinsert: {
CmdType: SingleShard,
},
CmdLPush: {
CmdType: SingleShard,
},
Expand Down

0 comments on commit d9d42f0

Please sign in to comment.