fix(core): own cache transports and accept cleanup reviews
This commit is contained in:
parent
bd9332b2f6
commit
b4ac6460ef
24 changed files with 504 additions and 97 deletions
|
|
@ -25,8 +25,12 @@ export const questdbConfigSchema = z.object({
|
|||
database: z.string().default('questdb'),
|
||||
user: z.string().optional(), // No default - QuestDB doesn't require auth by default
|
||||
password: z.string().optional(), // No default - QuestDB doesn't require auth by default
|
||||
bufferSize: z.number().default(65536),
|
||||
flushInterval: z.number().default(1000),
|
||||
// Deprecated compatibility fields: DI uses the client, not a background buffered writer.
|
||||
bufferSize: z.number().default(65536).describe('Deprecated: no effect on QuestDB client/writer'),
|
||||
flushInterval: z
|
||||
.number()
|
||||
.default(1000)
|
||||
.describe('Deprecated: no effect on QuestDB client/writer'),
|
||||
});
|
||||
|
||||
// MongoDB configuration
|
||||
|
|
@ -52,10 +56,14 @@ export const dragonflyConfigSchema = z.object({
|
|||
password: z.string().optional(),
|
||||
db: z.number().min(0).max(15).default(0),
|
||||
username: z.string().optional(),
|
||||
keyPrefix: z.string().optional(),
|
||||
keyPrefix: z
|
||||
.string()
|
||||
.optional()
|
||||
.describe('Deprecated at DI boundary: service cache namespaces are fixed'),
|
||||
ttl: z.number().optional(),
|
||||
maxRetries: z.number().default(3),
|
||||
retryDelay: z.number().default(100),
|
||||
// Cache/rate-limiter request retries. BullMQ retains its dedicated worker/producer policy.
|
||||
maxRetries: z.number().default(3).describe('Cache/rate-limiter maxRetriesPerRequest'),
|
||||
retryDelay: z.number().default(100).describe('Fixed Redis reconnect delay in milliseconds'),
|
||||
});
|
||||
|
||||
// Combined database configuration
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue