summaryrefslogtreecommitdiffstats
path: root/iredis/data/commands/get.md
blob: 423aab3a11adbda462fff6260c5de571c8157772 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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.

@return

@bulk-string-reply: the value of `key`, or `nil` when `key` does not exist.

@examples

```cli
GET nonexisting
SET mykey "Hello"
GET mykey
```