LASTSAVE
Syntax
LASTSAVE
Module
adminCategories
admin dangerous fastDescription
Get unix timestamp for the latest snapshot in milliseconds.
Examples
- Go (Embedded)
- CLI
Get last snapshot timestamp:
db, err := sugardb.NewSugarDB()
if err != nil {
log.Fatal(err)
}
count, err := db.LastSave()
Get last snapshot timestamp:
> LASTSAVE