Skip to content

Commit

Permalink
Co-Authored-By: Nachiket18 <[email protected]>
Browse files Browse the repository at this point in the history
  • Loading branch information
asaurabh12 committed Jan 6, 2025
1 parent 699f3bb commit 6589ac9
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
9 changes: 9 additions & 0 deletions internal/commandhandler/cmd_meta.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ const (
CmdCMSIncrBy = "CMS.INCRBY"
CmdHSet = "HSET"
CmdHGet = "HGET"
CmdHGetAll = "HGETALL"
CmdHSetnx = "HSETNX"
CmdHDel = "HDEL"
CmdHMSet = "HMSET"
Expand Down Expand Up @@ -211,6 +212,8 @@ const (
CmdZRangeUnWatch = "ZRANGE.UNWATCH"
CmdPFCountWatch = "PFCOUNT.WATCH"
CmdPFCountUnWatch = "PFCOUNT.UNWATCH"
CmdHGetAllWatch = "HGETALL.WATCH"
CmdHGetAllUnWatch = "HGETALL.UNWATCH"
)

type CmdMeta struct {
Expand Down Expand Up @@ -676,6 +679,9 @@ var CommandsMeta = map[string]CmdMeta{
CmdPFCountWatch: {
CmdType: Watch,
},
CmdHGetAllWatch: {
CmdType: Watch,
},

// Unwatch commands
CmdGetUnWatch: {
Expand All @@ -687,6 +693,9 @@ var CommandsMeta = map[string]CmdMeta{
CmdPFCountUnWatch: {
CmdType: Unwatch,
},
CmdHGetAllUnWatch: {
CmdType: Unwatch,
},
}

func init() {
Expand Down
1 change: 1 addition & 0 deletions internal/store/constants.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,5 @@ const (
SingleShardTouch string = "SINGLETOUCH"
SingleShardKeys string = "SINGLEKEYS"
FlushDB string = "FLUSHDB"
HGetAll string = "HGETALL"
)
1 change: 1 addition & 0 deletions internal/watchmanager/watch_manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ var (
dstore.ZAdd: {dstore.ZRange: struct{}{}},
dstore.PFADD: {dstore.PFCOUNT: struct{}{}},
dstore.PFMERGE: {dstore.PFCOUNT: struct{}{}},
dstore.HSET: {dstore.HGETALL: struct{}{}},
}
)

Expand Down

0 comments on commit 6589ac9

Please sign in to comment.