GET

Redis Developer Course Redis Cloud Service Redis-Gate Server

Lookup value(data)

GET is a command that queries the value.
Usage is GET key.

Return value

Bulk string reply: the value of key, or nil when key does not exist.

Example

command>get key4
result>(nil)
command>set key4 value
result>OK
command>get key4
result>value


Syntax

GET key

  • Available since 1.0.0.
  • Time complexity: O(1)
Related Commands MGET
Clients for Java Jedis, Lettuce, Redisson
Clients for C Hiredis

To practice the command, click here to run Redis Web Client


<< DEL GET INCR >>

Click for a question or to see comments.  Comments :    Viewed :

Email 답글이 올라오면 이메일로 알려드리겠습니다.