Is there a way to disable command 'keys *' in Redis?

717 Views Asked by At

I'm using AWS elastic cache Redis.

I saw that Warning: consider KEYS as a command that should only be used in production environments with extreme care in Redis Documentation.

If I want to disable the 'key' command, Is there a way to disable command 'keys' or 'keys *' in Redis ?

Thanks

1

There are 1 best solutions below

0
On

Solution

You can disable the 'keys' command using the rename-commands in the parameter group(AWS elastic cache Parameter group).