committed by
GitHub
parent
95c538c675
commit
5a8a889c6d
@@ -11,12 +11,12 @@ export const initialize = async (
|
||||
options?: RedisCacheModuleOptions | ExternalModuleDeclaration
|
||||
): Promise<ICacheService> => {
|
||||
const serviceKey = Modules.CACHE
|
||||
const loaded = await MedusaModule.bootstrap(
|
||||
const loaded = await MedusaModule.bootstrap<ICacheService>(
|
||||
serviceKey,
|
||||
"@medusajs/cache-redis",
|
||||
options as InternalModuleDeclaration | ExternalModuleDeclaration,
|
||||
undefined
|
||||
)
|
||||
|
||||
return loaded[serviceKey] as ICacheService
|
||||
return loaded[serviceKey]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user