Type Alias CacheResolverSettings<TAdapters, TType>

CacheResolverSettings: CacheSettingsBase<TType> & {
    adapters: CacheAdapters<TAdapters>;
    defaultAdapter?: NoInfer<TAdapters>;
}

Configuration for CacheResolver. Registers named cache adapters with optional schema validation and designates a default.

IMPORT_PATH: "@daiso-tech/core/cache"

Type Parameters

  • TAdapters extends string = string
  • TType = unknown

Type declaration

  • adapters: CacheAdapters<TAdapters>

    Named registry of cache adapters. Each key is an adapter alias and the corresponding value is the adapter instance.

  • OptionaldefaultAdapter?: NoInfer<TAdapters>

    The alias of the adapter to use when none is explicitly specified. Must be a key in the adapters map.