diff --git a/internal/server/cmd_meta.go b/internal/server/cmd_meta.go index 3e3eb8755..1844f1a39 100644 --- a/internal/server/cmd_meta.go +++ b/internal/server/cmd_meta.go @@ -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, @@ -367,7 +375,6 @@ var ( Cmd: "LLEN", CmdType: SingleShard, } - jsonForgetCmdMeta = CmdsMeta{ Cmd: "JSON.FORGET", CmdType: SingleShard, @@ -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 diff --git a/internal/worker/cmd_meta.go b/internal/worker/cmd_meta.go index 0af832b1c..9119b15a1 100644 --- a/internal/worker/cmd_meta.go +++ b/internal/worker/cmd_meta.go @@ -55,6 +55,8 @@ const ( CmdGetSet = "GETSET" CmdGetEx = "GETEX" CmdGetDel = "GETDEL" + CmdLrange = "LRANGE" + CmdLinsert = "LINSERT" CmdJSONArrAppend = "JSON.ARRAPPEND" CmdJSONArrLen = "JSON.ARRLEN" CmdJSONArrPop = "JSON.ARRPOP" @@ -335,6 +337,12 @@ var CommandsMeta = map[string]CmdMeta{ CmdBitFieldRO: { CmdType: SingleShard, }, + CmdLrange: { + CmdType: SingleShard, + }, + CmdLinsert: { + CmdType: SingleShard, + }, CmdLPush: { CmdType: SingleShard, },