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