/my-redis

Primary LanguageJavaScript

Demo Redis Server with CLI

Redis server usage -

  1. Open terminal and cd to my-redis directory
  2. Run command npm run serve
  3. Server runs on PORT 9999 and localhost

Redis CLI usage -

  1. Open terminal and cd to my-redis directory
  2. Run command npm run cli
  3. Get command example - 4. GET key1 5. If key exists with value Val output will be Val 6. if key does not exist output will be nil
  4. Set command example - 8. SET key1 value1 9. Output - OK 10. SET key1 "value 1" 11. Output - OK