SMOVE
Syntax
SMOVE source destination member
Module
setCategories
fast set writeDescription
Moves a member from source set to destination set.
Examples
- Go (Embedded)
- CLI
Move a member from source set to destination set:
db, err := sugardb.NewSugarDB()
if err != nil {
log.Fatal(err)
}
moved, err := db.SMove("source", "destination", "member")
Move a member from source set to destination set:
> SMOVE source destination member