Abbas Ghomi
Abbas Ghomi

Reputation: 159

Clear Redis-Cli history on Windows machine

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

Upvotes: 1

Views: 977

Answers (2)

Tomasz Poradowski
Tomasz Poradowski

Reputation: 1380

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.

Upvotes: 2

Abbas Ghomi
Abbas Ghomi

Reputation: 159

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"

Upvotes: 0

Related Questions