DEV Community

Sri
Sri

Posted on

Redis Installation on windows

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

  1. sc start redis
  2. >redis-cli.exe ping expected output: PONG
  3. redis-cli
  4. server with port no will be prompt in keys *

Shutdown server:

  1. Redis-cli
  2. shutdown

delete keys
1.type cmd Keys *

  1. "Hello"
  2. "Sample"
  3. "Books::6"

  4. del Books::6
    output
    (integer 1)

  5. 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)