How do i calculate the length of a redis string data type?
-
Connect to the redis server
$ ./redis-cli 27.0.0.1:6379>
Set a string value.
27.0.0.1:6379> set "Shopping List" "Eggs, Orange Juice, Bread" OK
Calculate the length of string key "Shopping List".
127.0.0.1:6379> STRLEN "Shopping List" (integer) 25
© Lightnetics 2024