- Open terminal and
cd
tomy-redis
directory- Run command
npm run serve
- Server runs on PORT 9999 and localhost
- Open terminal and
cd
tomy-redis
directory- Run command
npm run cli
- Get command example - 4.
GET key1
5. Ifkey
exists with valueVal
output will beVal
6. ifkey
does not exist output will benil
- Set command example - 8.
SET key1 value1
9. Output -OK
10.SET key1 "value 1"
11. Output -OK