@cpod/sdk - v0.2.7
    Preparing search index...

    Interface AppStorage

    App storage instance interface Each app gets its own isolated storage namespace

    interface AppStorage {
        appId: string;
        get<T = unknown>(key: string): Promise<T | null>;
        set<T = unknown>(
            key: string,
            value: T,
            options?: StorageOptions,
        ): Promise<void>;
        delete(key: string): Promise<void>;
        keys(): Promise<string[]>;
        clear(): Promise<void>;
        has(key: string): Promise<boolean>;
        subscribe<T = unknown>(
            key: string,
            callback: SubscribeCallback<T>,
        ): Unsubscribe;
        subscribeAll(callback: SubscribeAllCallback): Unsubscribe;
    }
    Index

    Properties

    appId: string

    App ID for this storage instance

    Methods