1

Every time i open Redis-Cli tool , I can see my past entered commands including passwords.

How can i clear the history of Redis-Cli

Abbas Ghomi
  • 139
  • 1
  • 7

2 Answers2

2

If you don't want the history to be kept in %HOMEDRIVE%%HOMEPATH%\.rediscli_history file at all - you can set the environment variable REDISCLI_HISTFILE=/dev/null and it will prevent the history to be saved.

Tomasz Poradowski
  • 1,251
  • 11
  • 12
0

To clear the Redis-Cli History follow the instructions below:

1- Goto folder "C:\Users[username]"

2- Clear the content of the file ".rediscli_history"

Abbas Ghomi
  • 139
  • 1
  • 7