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:

vault, err := echovault.NewEchoVault()
if err != nil {
log.Fatal(err)
}
ok, err := vault.Lrem("key", 2, "value1")