Cache

Cache interface type.

Hint: The key method uses value-based keys for primitive inputs and reference-identity keys for object and function inputs.

Generics

  • TValue extends any

Definition

  • Cache
    • key (input: unknown, config?: Config<BaseIssue<unknown>>) => string
    • get ((key: string) => TValue | undefined)
    • set (key: string, value: TValue) => void
    • clear () => void

Contributors

Thanks to all the contributors who helped make this page better!

  • GitHub profile picture of @fabianhiller

Partners

Thanks to our partners who support the project ideally and financially.

Sponsors

Thanks to our GitHub sponsors who support the project financially.

  • GitHub profile picture of @antfu
  • GitHub profile picture of @UpwayShop
  • GitHub profile picture of @vasilii-kovalev
  • GitHub profile picture of @saturnonearth
  • GitHub profile picture of @ruiaraujo012
  • GitHub profile picture of @hyunbinseo
  • GitHub profile picture of @nickytonline
  • GitHub profile picture of @KubaJastrz
  • GitHub profile picture of @kibertoad
  • GitHub profile picture of @Thanaen
  • GitHub profile picture of @caegdeveloper
  • GitHub profile picture of @bmoyroud
  • GitHub profile picture of @dslatkin