Options
All
  • Public
  • Public/Protected
  • All
Menu

Type parameters

  • Args: unknown[]

    Arguments array infered from passed function to cache

  • ResultType: unknown

    Value that is returned from operation, infered from passed function

Hierarchy

  • CacheResolver

Callable

  • __call(...args: Args): ResultType
  • Calling cache resolver will call lookup in cache to return matching value or call base function that was passed to withCache factory

    Parameters

    • Rest ...args: Args

    Returns ResultType

Index

Methods

Methods

clear

  • clear(): void
  • Calls clear method on cache instance

    Returns void

refresh

  • refresh(...args: Args): ResultType
  • Using this method won't check for cached values and will call base fn and save result of this operation to cache

    Parameters

    • Rest ...args: Args

    Returns ResultType