AngularTS
    Preparing search index...

    Interface CacheStore<T>

    Synchronous or asynchronous cache store.

    interface CacheStore<T = unknown> {
        delete(key: string): unknown;
        deletePrefix?(prefix: string): unknown;
        get(key: string): T | PromiseLike<T | undefined> | undefined;
        set(key: string, value: T): unknown;
    }

    Type Parameters

    • T = unknown
    Index

    Methods

    • Parameters

      • key: string

      Returns unknown

    • Parameters

      • prefix: string

      Returns unknown

    • Parameters

      • key: string

      Returns T | PromiseLike<T | undefined> | undefined

    • Parameters

      • key: string
      • value: T

      Returns unknown