UNPKG

@nestjs-redis/client

Version:

Flexible, production-ready Redis client module for NestJS with multi-connection support, built on the modern node-redis client

17 lines (16 loc) 441 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.RedisToken = RedisToken; /** * Creates a Redis client injection token. * * @param connectionName - Optional connection name * @returns Injection token for the Redis client * @publicApi */ function RedisToken(connectionName) { if (connectionName) { return `REDIS_CLIENT_${connectionName.toUpperCase()}`; } return 'REDIS_CLIENT'; }