Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Cache<T>

Type parameters

  • T

Hierarchy

  • Cache

Implements

Index

Constructors

  • Type parameters

    • T

    Parameters

    • updater: () => Promise<T>
        • (): Promise<T>
        • Returns Promise<T>

    • config: CacheConfig

    Returns Cache<T>

Properties

data: null | Promise<T> = null
isLoading: boolean = false
timer: any
updatedAt: number = 0

Methods

  • destroy(): Promise<void>
  • get(): Promise<T>

Generated using TypeDoc