parent
a08edb2ee6
commit
c9b76681c3
2 changed files with 16 additions and 0 deletions
@ -0,0 +1,8 @@ |
|||||||
|
-- Aliyun Redis 4.0: skip OPINFO command |
||||||
|
function filter(id, is_base, group, cmd_name, keys, slots, db_id, timestamp_ms) |
||||||
|
if cmd_name == "OPINFO" then |
||||||
|
return 1, db_id -- disallow |
||||||
|
else |
||||||
|
return 0, db_id -- allow |
||||||
|
end |
||||||
|
end |
@ -0,0 +1,8 @@ |
|||||||
|
-- ElastiCache: skip REPLCONF command |
||||||
|
function filter(id, is_base, group, cmd_name, keys, slots, db_id, timestamp_ms) |
||||||
|
if cmd_name == "REPLCONF" then |
||||||
|
return 1, db_id -- disallow |
||||||
|
else |
||||||
|
return 0, db_id -- allow |
||||||
|
end |
||||||
|
end |
Loading…
Reference in new issue