Sunday 5 April 2015

Redis string type

Redis string type is used to set and get values.

hk@hk-Inspiron-N5010:~$ redis-cli 
127.0.0.1:6379> set name hari 
OK 
127.0.0.1:6379> get name 
"hari" 
127.0.0.1:6379> set name "Krishna" 
OK 
127.0.0.1:6379> get name 
"Krishna" 
127.0.0.1:6379> 


As you see using the SET and the GET commands are the way, we set and retrieve a string value. The maximum size limit for a value stored in redis is 512 MB. I will explain all the commands available to work with String data type later.

Prevoius                                                 Next                                                 Home


No comments:

Post a Comment