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