Skip to main content

LTRIM

Syntax

LTRIM key start end

Module

list

Categories

list write slow

Description

Trims a list using the specified range.

Examples

Trims a list using the specified range:

db, err := sugardb.NewSugarDB()
if err != nil {
log.Fatal(err)
}
ok, err := db.LTrim("key", 2, 6)