Options
All
  • Public
  • Public/Protected
  • All
Menu

Module fallback/cache

Index

Functions Fallback

Fallback Functions

  • fallbackCache<T>(runner: T, cacheSize?: number): T
  • fallback to cache, if runner throw error, will try to return the latest cached value

    since

    5.15.0

    Type Parameters

    • T

    Parameters

    • runner: T
    • cacheSize: number = 1024

      the maximum number cache item (different parameters)

    Returns T