STRLEN
Syntax
STRLEN key
Module
stringCategories
fast read stringDescription
Returns length of the key's value if it's a string.
Examples
- Go (Embedded)
- CLI
Get the substring of a string value:
db, err := sugardb.NewSugarDB()
if err != nil {
log.Fatal(err)
}
length, err := db.StrLen("key")
Get the substring of a string value:
> STRLEN key