Start server:
Option 1: Run Command Prompt as Administrator
Close the current Command Prompt.
Open the Start menu.
Search for cmd.
Right-click Command Prompt → Run as administrator.
Run
- sc start redis
- >redis-cli.exe ping expected output: PONG
- redis-cli
- server with port no will be prompt in keys *
Shutdown server:
- Redis-cli
- shutdown
delete keys
1.type cmd Keys *
- "Hello"
- "Sample"
"Books::6"
del Books::6
output
(integer 1)delete multiple keys
del Hello Sample
(integer) 2
Delete All Keys in Current Database
FLUSHDB
⚠️ This removes all keys from the currently selected Redis database.
Delete All Keys in All Databases
FLUSHALL
⚠️ This removes everything from Red
Top comments (0)