blob: e504180f016694e7c06bdeb7b8f01f5c93e7d51f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
Returns the length of the string value stored at `key`.
An error is returned when `key` holds a non-string value.
@return
@integer-reply: the length of the string at `key`, or `0` when `key` does not
exist.
@examples
```cli
SET mykey "Hello world"
STRLEN mykey
STRLEN nonexisting
```
|