@conciergus/chat - v0.3.1
    Preparing search index...

    Interface PluginStorage

    Plugin storage interface

    interface PluginStorage {
        get: <T = any>(key: string) => T | Promise<T>;
        set: <T = any>(key: string, value: T) => void | Promise<void>;
        remove: (key: string) => void | Promise<void>;
        clear: () => void | Promise<void>;
        keys: () => string[] | Promise<string[]>;
        has: (key: string) => boolean | Promise<boolean>;
    }

    Implemented by

    Index

    Properties

    Properties

    get: <T = any>(key: string) => T | Promise<T>

    Get stored value

    set: <T = any>(key: string, value: T) => void | Promise<void>

    Set stored value

    remove: (key: string) => void | Promise<void>

    Remove stored value

    clear: () => void | Promise<void>

    Clear all stored values

    keys: () => string[] | Promise<string[]>

    Get all keys

    has: (key: string) => boolean | Promise<boolean>

    Check if key exists