Skip to content

Interfaces

ITimedCacheConstructorOps

ts
export interface ITimedCacheConstructorOps<V> {
  name: string;
  onExpire?: ExpireCallback<V>;
  defaultTTL?: string;
}

ICachedFunctionConstructorOps

ts
export interface ICachedFunctionConstructorOps<
  Args extends any[] = any[],
  R = any,
> {
  name: string;
  func: CacheFunc<Args, R> | AsyncCacheFunc<Args, R>;
  ttl?: string;
}

Made By Fayaz | Released under the MIT License