prorm API Reference
    Preparing search index...

    Interface SetOptions

    Options for set().

    interface SetOptions {
        ex?: number;
        px?: number;
        nx?: boolean;
        xx?: boolean;
        keepttl?: boolean;
    }
    Index
    ex?: number

    Expire after this many seconds.

    px?: number

    Expire after this many milliseconds.

    nx?: boolean

    Only set the key if it does not already exist.

    xx?: boolean

    Only set the key if it already exists.

    keepttl?: boolean

    Retain the key's existing TTL.