Using a custom cache can help you improve code performance by storing data that is
expensive to calculate, takes a long time to retrieve, or is accessed frequently. You define
a custom cache in a JSON file in a custom cartridge.
What Is a Custom Cache?
Approximately 20 MB of memory is reserved for all custom caches on each application server. A B2C Commerce instance can have multiple application servers, but custom caches on different application servers within the same instance are separate and not synchronized across the instance.
Define a Custom Cache
You define a custom cache in a cartridge using a JSON file. You can have up to 100 custom caches across all cartridges in a code version. Any cartridge within a code version can access all the caches defined in all the cartridges of that code version.
Use Custom Caches
To store, retrieve, or manage a cache entry, use the B2C Commerce script API classes dw.system.CacheMgr and dw.system.Cache.
XPrivacy Update: We use cookies to make interactions with our websites and services easy and meaningful, to better understand how they are used. By continuing to use this site you are giving us your consent to do this. Privacy Policy.