diff --git a/lib/redis-client.provider.ts b/lib/redis-client.provider.ts index eac33a1..c68a3e8 100644 --- a/lib/redis-client.provider.ts +++ b/lib/redis-client.provider.ts @@ -14,7 +14,7 @@ export interface RedisClient { async function getClient(options: RedisModuleOptions): Promise { const { onClientReady, url, ...opt } = options; - const client = url ? new Redis(url) : new Redis(opt); + const client = url ? new Redis(url, opt) : new Redis(opt); if (onClientReady) { onClientReady(client) }