docs: Caching Module (#13701)

* standard docs for caching module + deprecated cache module

* added guides for creating + using, and overall changes from cache to caching

* fix details related to redis provider

* fix build errors

* fix build error

* fixes

* add guides to sidebar

* add sidebar util

* document query + index

* moved cache tag conventions

* fix build errors

* added migration guide

* added memcached guide

* fixes

* general fixes and updates

* updated reference

* document medusa cache

* small fix

* fixes

* remove cloud cache

* revert edit dates changes

* revert edit dates

* small update
This commit is contained in:
Shahed Nasser
2025-10-21 10:34:27 +03:00
committed by GitHub
parent eefda0edce
commit 76f9da5ef4
50 changed files with 10530 additions and 145 deletions
@@ -6622,5 +6622,6 @@ export const generatedEditDates = {
"app/data-model-repository-reference/methods/upsertWithReplace/page.mdx": "2025-10-09T11:44:53.535Z",
"app/how-to-tutorials/tutorials/agentic-commerce/page.mdx": "2025-10-09T11:25:48.831Z",
"app/storefront-development/production-optimizations/page.mdx": "2025-10-03T13:28:37.909Z",
"app/infrastructure-modules/caching/page.mdx": "2025-10-13T11:46:36.452Z",
"app/troubleshooting/subscribers/not-working/page.mdx": "2025-10-16T09:25:57.376Z"
}
@@ -831,6 +831,30 @@ export const filesMap = [
"filePath": "/www/apps/resources/app/infrastructure-modules/cache/redis/page.mdx",
"pathname": "/infrastructure-modules/cache/redis"
},
{
"filePath": "/www/apps/resources/app/infrastructure-modules/caching/concepts/page.mdx",
"pathname": "/infrastructure-modules/caching/concepts"
},
{
"filePath": "/www/apps/resources/app/infrastructure-modules/caching/guides/memcached/page.mdx",
"pathname": "/infrastructure-modules/caching/guides/memcached"
},
{
"filePath": "/www/apps/resources/app/infrastructure-modules/caching/migrate-cache/page.mdx",
"pathname": "/infrastructure-modules/caching/migrate-cache"
},
{
"filePath": "/www/apps/resources/app/infrastructure-modules/caching/page.mdx",
"pathname": "/infrastructure-modules/caching"
},
{
"filePath": "/www/apps/resources/app/infrastructure-modules/caching/providers/page.mdx",
"pathname": "/infrastructure-modules/caching/providers"
},
{
"filePath": "/www/apps/resources/app/infrastructure-modules/caching/providers/redis/page.mdx",
"pathname": "/infrastructure-modules/caching/providers/redis"
},
{
"filePath": "/www/apps/resources/app/infrastructure-modules/event/create/page.mdx",
"pathname": "/infrastructure-modules/event/create"
@@ -1931,6 +1955,14 @@ export const filesMap = [
"filePath": "/www/apps/resources/references/cache/interfaces/cache.ICacheService/page.mdx",
"pathname": "/references/cache/interfaces/cache.ICacheService"
},
{
"filePath": "/www/apps/resources/references/caching/interfaces/caching.ICachingModuleService/page.mdx",
"pathname": "/references/caching/interfaces/caching.ICachingModuleService"
},
{
"filePath": "/www/apps/resources/references/caching/interfaces/caching.ICachingProviderService/page.mdx",
"pathname": "/references/caching/interfaces/caching.ICachingProviderService"
},
{
"filePath": "/www/apps/resources/references/cart/IBigNumber/methods/cart.IBigNumber.toJSON/page.mdx",
"pathname": "/references/cart/IBigNumber/methods/cart.IBigNumber.toJSON"
@@ -14187,6 +14219,10 @@ export const filesMap = [
"filePath": "/www/apps/resources/references/modules/cache/page.mdx",
"pathname": "/references/modules/cache"
},
{
"filePath": "/www/apps/resources/references/modules/caching/page.mdx",
"pathname": "/references/modules/caching"
},
{
"filePath": "/www/apps/resources/references/modules/cart/page.mdx",
"pathname": "/references/modules/cart"
@@ -62,6 +62,14 @@ const generatedgeneratedHowToTutorialsSidebarSidebar = {
"path": "https://docs.medusajs.com/resources/infrastructure-modules/cache/create",
"children": []
},
{
"loaded": true,
"isPathHref": true,
"type": "ref",
"title": "Create Caching Provider",
"path": "https://docs.medusajs.com/resources/references/caching-module-provider",
"children": []
},
{
"loaded": true,
"isPathHref": true,
@@ -190,6 +198,14 @@ const generatedgeneratedHowToTutorialsSidebarSidebar = {
"path": "https://docs.medusajs.com/resources/references/cache-service",
"children": []
},
{
"loaded": true,
"isPathHref": true,
"type": "ref",
"title": "Use Caching Module",
"path": "https://docs.medusajs.com/resources/references/caching-service",
"children": []
},
{
"loaded": true,
"isPathHref": true,
@@ -90,8 +90,94 @@ const generatedgeneratedInfrastructureModulesSidebarSidebar = {
"loaded": true,
"isPathHref": true,
"type": "category",
"title": "Cache Module",
"title": "Caching Module",
"initialOpen": true,
"children": [
{
"loaded": true,
"isPathHref": true,
"type": "link",
"path": "/infrastructure-modules/caching",
"title": "Overview",
"children": []
},
{
"loaded": true,
"isPathHref": true,
"type": "link",
"path": "/infrastructure-modules/caching/concepts",
"title": "Concepts",
"children": []
},
{
"loaded": true,
"isPathHref": true,
"type": "link",
"path": "/infrastructure-modules/caching/migrate-cache",
"title": "Migrate from Cache Module",
"children": []
},
{
"loaded": true,
"isPathHref": true,
"type": "link",
"title": "Providers",
"path": "/infrastructure-modules/caching/providers",
"children": [
{
"loaded": true,
"isPathHref": true,
"type": "link",
"path": "/infrastructure-modules/caching/providers/redis",
"title": "Redis",
"children": []
},
{
"loaded": true,
"isPathHref": true,
"type": "link",
"path": "/infrastructure-modules/caching/guides/memcached",
"title": "Memcached",
"children": []
}
]
},
{
"loaded": true,
"isPathHref": true,
"type": "sub-category",
"title": "Guides",
"children": [
{
"loaded": true,
"isPathHref": true,
"type": "link",
"path": "/references/caching-module-provider",
"title": "Create Caching Module Provider",
"children": []
},
{
"loaded": true,
"isPathHref": true,
"type": "link",
"path": "/references/caching-service",
"title": "Use Caching Module",
"children": []
}
]
}
]
},
{
"loaded": true,
"isPathHref": true,
"type": "category",
"title": "Cache Module",
"initialOpen": false,
"badge": {
"variant": "neutral",
"text": "Deprecated"
},
"children": [
{
"loaded": true,
@@ -164,6 +164,16 @@ export const slugChanges = [
"newSlug": "/references/cache-service",
"filePath": "/www/apps/resources/references/cache/interfaces/cache.ICacheService/page.mdx"
},
{
"origSlug": "/references/caching/interfaces/caching.ICachingModuleService",
"newSlug": "/references/caching-service",
"filePath": "/www/apps/resources/references/caching/interfaces/caching.ICachingModuleService/page.mdx"
},
{
"origSlug": "/references/caching/interfaces/caching.ICachingProviderService",
"newSlug": "/references/caching-module-provider",
"filePath": "/www/apps/resources/references/caching/interfaces/caching.ICachingProviderService/page.mdx"
},
{
"origSlug": "/references/cart/ICartModuleService/methods/cart.ICartModuleService.addLineItemAdjustments",
"newSlug": "/references/cart/addLineItemAdjustments",