Type Alias ICacheFactory<TDrivers, TType>

ICacheFactory<TDrivers, TType>: {
    use(driverName?: TDrivers): IGroupableCache<TType>;
    withType<TOutput>(): ICacheFactory<TDrivers, TOutput>;
}

The ICacheFactory contract makes it easy to configure and switch between different IGroupableCache dynamically.

Type Parameters

  • TDrivers extends string = string
  • TType = unknown

Type declaration