LPOP
Syntax
LPOP key
Module
listCategories
list write fastDescription
Removes and returns the first element of a list.
Examples
- Go (Embedded)
- CLI
Removes and returns the first element of a list:
db, err := sugardb.NewSugarDB()
if err != nil {
log.Fatal(err)
}
element, err := db.LPop("key")
Removes and returns the first element of a list:
> LPOP key