chore(medusa): Expose ioredis options (#4073)
* chore(medusa): Expose ioredis options * Create empty-clocks-tease.md
This commit is contained in:
@@ -0,0 +1,6 @@
|
|||||||
|
---
|
||||||
|
"@medusajs/medusa": patch
|
||||||
|
"@medusajs/types": patch
|
||||||
|
---
|
||||||
|
|
||||||
|
chore(medusa): Expose `ioredis` options
|
||||||
@@ -20,6 +20,7 @@ async function redisLoader({
|
|||||||
const redisClient = new Redis(configModule.projectConfig.redis_url, {
|
const redisClient = new Redis(configModule.projectConfig.redis_url, {
|
||||||
// Lazy connect to properly handle connection errors
|
// Lazy connect to properly handle connection errors
|
||||||
lazyConnect: true,
|
lazyConnect: true,
|
||||||
|
...(configModule.projectConfig.redis_options ?? {}),
|
||||||
})
|
})
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
import { RedisOptions } from "ioredis"
|
||||||
import { LoggerOptions } from "typeorm"
|
import { LoggerOptions } from "typeorm"
|
||||||
import {
|
import {
|
||||||
ExternalModuleDeclaration,
|
ExternalModuleDeclaration,
|
||||||
@@ -22,6 +23,7 @@ export type HttpCompressionOptions = {
|
|||||||
|
|
||||||
export type ProjectConfigOptions = {
|
export type ProjectConfigOptions = {
|
||||||
redis_url?: string
|
redis_url?: string
|
||||||
|
redis_options?: RedisOptions
|
||||||
|
|
||||||
session_options?: SessionOptions
|
session_options?: SessionOptions
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user