GETRANGE
Syntax
GETRANGE key start end
Module
sortedsetCategories
read slow sortedsetDescription
Return the substring of the string value stored at key. The substring is specified by the start and end indexes.
Examples
- Go (Embedded)
- CLI
Get the substring of a string value:
db, err := sugardb.NewSugarDB()
if err != nil {
log.Fatal(err)
}
substring, err := db.GetRange("key", 4, 10)
Get the substring of a string value:
> GETRANGE key 4 10