diff --git a/filters/aliyun.lua b/filters/aliyun.lua new file mode 100644 index 0000000..8ab684b --- /dev/null +++ b/filters/aliyun.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 \ No newline at end of file diff --git a/filters/aws.lua b/filters/aws.lua new file mode 100644 index 0000000..23101c3 --- /dev/null +++ b/filters/aws.lua @@ -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 \ No newline at end of file