vtils

Home > utils > AsyncMemoizeOptions

AsyncMemoizeOptions interface

Signature:

export declare interface AsyncMemoizeOptions<T extends (...args: any[]) => Promise<any>> 

Properties

Property Modifiers Type Description
cacheKey?   (…args: Parameters<T>) => any <p>(Optional) 缓存键。</p><p> arg0 => arg0</p>
cacheTTL?   number <p>(Optional) 缓存时效(毫秒)。</p><p> 0</p>