First you need to install and start your Redis server, check the link below that can help you to install redis on you server or local machine.
Now open your command prompt and run command redis-cli
:
To save first set >SET 'keyname' then 'value'
127.0.0.1:6379> SET hkey "Hello World!"
Press Enter you should see
OK
Then enter:
GET hkey
you should see:
"Hello World!"
Screen output example: