LRANGE
Syntax
LRANGE key start end
Module
listCategories
list read slowDescription
Return a range of elements between the given indices.
Examples
- Go (Embedded)
- CLI
Return a range of elements between the given indices:
db, err := sugardb.NewSugarDB()
if err != nil {
log.Fatal(err)
}
list, err := db.LRange("key", 2, 6)
Return a range of elements between the given indices:
> LRANGE key 2 6