PERSIST
Syntax
PERSIST key
Module
genericCategories
fast keyspace writeDescription
Removes the TTl associated with a key, turning it from a volatile key to a persistent key.
Examples
- Go (Embedded)
- CLI
Remove the TTL associated with a key:
db, err := sugardb.NewSugarDB()
if err != nil {
log.Fatal(err)
}
ok, err := db.Persist("key")
Remove the TTL associated with a key:
> PERSIST key