LTRIM
Syntax
LTRIM key start end
Module
listCategories
list write slowDescription
Trims a list using the specified range.
Examples
- Go (Embedded)
- CLI
Trims a list using the specified range:
db, err := sugardb.NewSugarDB()
if err != nil {
log.Fatal(err)
}
ok, err := db.LTrim("key", 2, 6)
Trims a list using the specified range:
> LTRIM key 2 6