Skip to main content

LRANGE

Syntax

LRANGE key start end

Module

list

Categories

list read slow

Description

Return a range of elements between the given indices.

Examples

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)