Skip to main content

LREM

Syntax​

LREM key count element

Module​

list

Categories​

list write slow

Description​

Remove <count> elements from list.

Examples​

Remove 2 instances if "value1" from the list at key:

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