Skip to main content
Glama

SFCC Development MCP Server

by taurgis
CacheMgr.md1.42 kB
## Package: dw.system # Class CacheMgr ## Inheritance Hierarchy - Object - dw.system.CacheMgr ## Description The CacheMgr class is the entry point for using custom caches. The CacheMgr can manage multiple custom caches that share one storage space. Each individual cache has a unique ID and an optional expiration time that specifies the maximum time (in seconds) an entry is stored in the cache. For registering caches inside the cartridge root folder, a 'package.json' file with a 'caches' entry must exist. The registration of caches is independent of any site context. "caches": "./caches.json" The caches entry links to a JSON file, with a path relative to the 'package.json' file. This file lists all registered caches inside the caches property: { "caches": [ { "id": "UnlimitedTestCache" }, { "id": "TestCacheWithExpiration", "expireAfterSeconds": 10 } ] } ## Constructor Summary ## Method Summary ### getCache **Signature:** `static getCache(cacheID : String) : Cache` Returns the defined cache instance for the given ID. ## Method Detail ## Method Details ### getCache **Signature:** `static getCache(cacheID : String) : Cache` **Description:** Returns the defined cache instance for the given ID. Throws an exception when the requested cache has not been defined in any caches.json descriptor. **Parameters:** - `cacheID`: The ID of the cache. **Returns:** The registered cache. ---

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/taurgis/sfcc-dev-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server