Skip to main content
Version: Next

@midwayjs/cache-manager

Index

Type Aliases

CacheManagerOptions

CacheManagerOptions<S, T>: SingleCacheOptions<S> | { store: (string | Cache | SingleCacheOptions<S, T> | () => Cache | Promise<Cache>)[] }

Type parameters

  • S: Store = any
  • T: object = any

CachingDecoratorKeyOptions

CachingDecoratorKeyOptions: string | (options: { ctx?: IMidwayContext; methodArgs: any[]; target: any }) => string

MidwayCache

MidwayCache: Cache

MidwayMultiCache

MidwayMultiCache: MultiCache

MidwayUnionCache

MidwayUnionCache: MidwayCache | MidwayMultiCache

SingleCacheOptions

SingleCacheOptions<S, T>: { options?: MemoryConfig; store: memory } | { store: S | () => S | Promise<S> } | { options?: FactoryConfig<Parameters<FactoryStore<S, T>>[0]>; store: FactoryStore<S, T> }

Type parameters

  • S: Store = any
  • T: object = any

Variables

constCACHE_DECORATOR_KEY

CACHE_DECORATOR_KEY: cache-manager:caching = 'cache-manager:caching'