How do i connect to the redis server?



  • $ cd <installdir-of-redis>/bin
    $ ./redis-cli
    127.0.0.1:6379>
    

    Set some test key value pairs.

    127.0.0.1:6379> set location1 jokesville
    OK
    127.0.0.1:6379> set location2 suitsville
    OK
    127.0.0.1:6379> get location1
    "jokesville"
    127.0.0.1:6379> get location2
    "suitsville"
    127.0.0.1:6379> 
    

Log in to reply
 

© Lightnetics 2024