chore: disabled all cache

This commit is contained in:
Marcos Susaña 2024-09-06 22:21:42 -04:00
parent 3cb52086cb
commit baa78422ec
No known key found for this signature in database

View File

@ -196,7 +196,9 @@ export class BaseClient {
this.cache = new Cache( this.cache = new Cache(
this.cache?.intents ?? 0, this.cache?.intents ?? 0,
cache?.adapter ?? this.cache?.adapter ?? new MemoryAdapter(), cache?.adapter ?? this.cache?.adapter ?? new MemoryAdapter(),
cache.disabledCache ?? this.cache?.disabledCache ?? [], (typeof cache.disabledCache === 'boolean' ? { onPacket: cache.disabledCache } : cache.disabledCache) ??
this.cache?.disabledCache ??
[],
this, this,
); );
} }
@ -525,7 +527,7 @@ export type RuntimeConfig = OmitInsert<
export interface ServicesOptions { export interface ServicesOptions {
rest?: ApiHandler; rest?: ApiHandler;
cache?: { adapter?: Adapter; disabledCache?: Cache['disabledCache'] }; cache?: { adapter?: Adapter; disabledCache?: true | Cache['disabledCache'] };
langs?: { langs?: {
default?: string; default?: string;
aliases?: Record<string, LocaleString[]>; aliases?: Record<string, LocaleString[]>;