Type Alias CachedFunction<T>

CachedFunction: T & {
    __cache_clear: (...args: Parameters<T>) => void;
    __cache_storage: CacheProvider<string, ReturnType<T>>;
}

Type Parameters

Type declaration

  • __cache_clear: (...args: Parameters<T>) => void

    clear cache by parameters

  • __cache_storage: CacheProvider<string, ReturnType<T>>

    get the cache provider