filter REPLCONF command for AWS ElastiCache and OPINFO command for Aliyun Redis 4.0

v4
suxb201 2 years ago committed by suxb201
parent a08edb2ee6
commit c9b76681c3
  1. 8
      filters/aliyun.lua
  2. 8
      filters/aws.lua

@ -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…
Cancel
Save