mirror of
https://github.com/tiramisulabs/seyfert.git
synced 2025-07-03 05:26:07 +00:00
chore: disabled all cache
This commit is contained in:
parent
3cb52086cb
commit
baa78422ec
@ -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[]>;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user