Skip to content
On this page
  1. Register managed caches
  2. Keep cache ownership in your service
  3. Review migration access

Cache management

Expose managed cache metadata from a Queuebert processor.

Register managed caches#

Processors can expose caches through getCacheConfigs(). Queuebert uses those configurations to report cache statistics and support cache migration workflows.

typescript
import type { QueuebertCacheConfig } from '@queuebert/nest';

export class EmailProcessor {
  getCacheConfigs(): QueuebertCacheConfig[] {
    return [
      {
        id: 'domains',
        label: 'Domain Cache',
        keyPrefix: 'cache:emails:domains',
        cache: this.domainCache,
      },
    ];
  }
}

The example illustrates the method to add to your processor. this.domainCache is your application's cache instance, not a cache created by Queuebert.

Keep cache ownership in your service#

Choose the cache ID, label and key prefix for the cache your processor owns. Keep connection details on your server and protect Queuebert's routes using your own authentication and authorization.

Review migration access#

Cache migration workflows can move data between Redis deployments. Review Multi-Redis and migrations and Endpoint controls before enabling them.

The source for this contract is the Nest package README.

Queuebert

© 2026 Queuebert