interface SetOptions {
    expiration?: null | number;
    ttl?: null | number;
}

Properties

Properties

expiration?: null | number

Expiration time for the key. The expiration time is specified as a Unix timestamp in seconds since UNIX epoch, and the key will be deleted from the database at the specified time.

ttl?: null | number

Time-to-live (TTL) for the key. The TTL is specified in seconds, and the key will be deleted from the database at earliest after the specified number of seconds have elapsed.