# Type alias PlatformCacheSettings
Type alias privateModule | import { PlatformCacheSettings } from "@tsed/platform/platform-cache/src/types/interfaces/interfaces" |
---|---|
Source | /packages/platform/platform-cache/src/types/interfaces/interfaces.ts |
# Overview
type PlatformCacheSettings<Config extends object = any, S extends Store = any> = CachingConfig<Config> & {
caches?: Cache[];
store?: "memory" | Store | PlatformCacheLegacyStoreFactory | FactoryStore<S, Config>;
max?: number;
keyResolver?: (args: any[], ctx: BaseContext) => string;
<span class="token punctuation">[</span>key<span class="token punctuation">:</span> <span class="token keyword">string</span><span class="token punctuation">]</span><span class="token punctuation">:</span> <span class="token keyword">any</span><span class="token punctuation">;</span>
};
# Members
caches?: Cache[];
store?: "memory" | Store | PlatformCacheLegacyStoreFactory | FactoryStore<S, Config>;
max?: number;
keyResolver?: (args: any[], ctx: BaseContext) => string;
[key: string]: any;
You may pass in any other arguments these will be passed on to the create
method of your store,
otherwise they will be ignored.