redis Getting started with redis Redis "Hello World"


Example

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.

Installation and Setup

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:

Screen output example