Skip to main content

PERSIST

Syntax

PERSIST key

Module

generic

Categories

fast keyspace write

Description

Removes the TTl associated with a key, turning it from a volatile key to a persistent key.

Examples

Remove the TTL associated with a key:

db, err := sugardb.NewSugarDB()
if err != nil {
log.Fatal(err)
}
ok, err := db.Persist("key")