Returns the string value of a key.
GET key
Get the value of key. If the key does not exist the special value nil is returned. An error is returned if the value stored at key is not a string, because GET only handles string values.
One of the following:
Bulk string reply: the value of the key.
Nil reply: if the key does not exist.
One of the following:
Bulk string reply: the value of the key.
Null reply: key does not exist.
O(1)
@fast @read @string
127.0.0.1:6379> GET nonexisting
(nil)
127.0.0.1:6379> SET mykey "Hello"
OK
127.0.0.1:6379> GET mykey
"Hello"
APPEND, DECR, DECRBY, GETDEL, GETEX, GETRANGE, INCR, INCRBY, INCRBYFLOAT, LCS, MGET, MSET, MSETNX, SET, SETRANGE, STRLEN.