How do i use the strings data type in redis?



  • Connect to the redis server.

    $ ./redis-cli
    27.0.0.1:6379>
    

    Set a string value.

    27.0.0.1:6379> set  "Shopping List" "Eggs, Orange Juice, Bread" 
    OK
    

    Get string value.

    127.0.0.1:6379> get "Shopping List"
    "Eggs, Orange Juice, Bread"
    

Log in to reply
 

© Lightnetics 2024