redis / lettuce

Advanced Java Redis client for thread-safe sync, async, and reactive usage. Supports Cluster, Sentinel, Pipelining, and codecs.
https://lettuce.io
MIT License
5.3k stars 949 forks source link

Redis: How to use a renamed command #2796

Open wangzhandongvip opened 3 months ago

wangzhandongvip commented 3 months ago

Feature Request

I have an issue when using springboot redisTemplate. for security reasons, the redis server need to rename the following command。 rename-command FLUSHALL "" rename-command FLUSHDB "" rename-command CONFIG "" rename-command KEYS "" rename-command SHUTDOWN "" rename-command DEL "" rename-command EVAL ""

and how I can use the renamed command with springboot redistemplate? I see the Code in CommandType.java, can I change the command Name here? img_v3_0297_75a78835-70d5-4aa1-a9e6-fc831e84bc7g

mp911de commented 3 months ago

Right now, you can either use Redis Command Interfaces or dispatch a custom command. We do not translate command names into renamed ones.