tamaina 2023-07-20 16:22:47 +00:00
parent b546d4108f
commit 509e3f979e

View file

@ -190,6 +190,7 @@ function tryCreateUrl(url: string) {
function convertRedisOptions(options: RedisOptionsSource, host: string): RedisOptions & RedisOptionsSource { function convertRedisOptions(options: RedisOptionsSource, host: string): RedisOptions & RedisOptionsSource {
return { return {
...options, ...options,
password: options.pass,
prefix: options.prefix ?? host, prefix: options.prefix ?? host,
family: options.family == null ? 0 : options.family, family: options.family == null ? 0 : options.family,
keyPrefix: `${options.prefix ?? host}:`, keyPrefix: `${options.prefix ?? host}:`,