RESOLVES CORE-1153 **What** - This pr mainly lay the foundation the caching layer. It comes with a modules (built in memory cache) and a redis provider. - Apply caching to few touch point to test Co-authored-by: Carlos R. L. Rodrigues <37986729+carlos-r-l-rodrigues@users.noreply.github.com>
13 lines
423 B
TypeScript
13 lines
423 B
TypeScript
import { Module, Modules } from "@medusajs/framework/utils"
|
|
import { default as loadHash } from "./loaders/hash"
|
|
import { default as loadProviders } from "./loaders/providers"
|
|
import CachingModuleService from "./services/cache-module"
|
|
|
|
export default Module(Modules.CACHING, {
|
|
service: CachingModuleService,
|
|
loaders: [loadHash, loadProviders],
|
|
})
|
|
|
|
// Module options types
|
|
export { CachingModuleOptions } from "./types"
|