Interface Cache

interface Cache {
    flush: (() => Promise<void>);
    read: ((key) => Promise<null | string>);
    write: ((key, value) => Promise<void>);
}

Implemented by

Properties

Properties

flush: (() => Promise<void>)

Type declaration

    • (): Promise<void>
    • Returns Promise<void>

read: ((key) => Promise<null | string>)

Type declaration

    • (key): Promise<null | string>
    • Parameters

      • key: string

      Returns Promise<null | string>

write: ((key, value) => Promise<void>)

Type declaration

    • (key, value): Promise<void>
    • Parameters

      • key: string
      • value: string

      Returns Promise<void>