switched proxy and batch to new redis
This commit is contained in:
parent
e98b1d8ae2
commit
a86367bec5
3 changed files with 29 additions and 521 deletions
|
|
@ -27,10 +27,8 @@ export class BatchProcessor {
|
|||
private queueManager: any,
|
||||
private cacheOptions?: { keyPrefix?: string; ttl?: number } // Optional cache configuration
|
||||
) {
|
||||
this.keyPrefix = cacheOptions?.keyPrefix || 'batch:';
|
||||
// Initialize cache provider with batch-specific settings
|
||||
this.cacheProvider = createCache('redis', {
|
||||
name: 'batch-processor',
|
||||
this.keyPrefix = cacheOptions?.keyPrefix || 'batch:'; // Initialize cache provider with batch-specific settings
|
||||
this.cacheProvider = createCache({
|
||||
keyPrefix: this.keyPrefix,
|
||||
ttl: cacheOptions?.ttl || 86400 * 2, // 48 hours default
|
||||
enableMetrics: true
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue