# Commerce Engine Connect Memory Cache settings

### Note

The Commerce Engine Connect Memory Cache settings are supported in Sitecore XC version 9.0.3 and later.

The Commerce Engine (CE) Connect Memory Cache stores catalog items to allow for quicker access from the storefront. The size of Commerce catalogs and the complexity of their structure can affect memory cache behavior. You can use the CE Connect Memory Cache settings to fine-tune the configuration to meet requirements of your Commerce storefront.

The CE Connect Memory Cache settings are located in the c:\inetpub\wwwroot\<site>\App_Config\Include\Y.Commerce.Engine folder, in the Sitecore.Commerce.Engine.Connect.config file.

The CE Connect Memory Cache provides the following settings (and default values):

• <cacheMemoryLimitMegabytes>500</cacheMemoryLimitMegabytes>: Establishes the limit of memory to reserve for the caching of the Catalog items (mostly SellableItems). Once the limit is reached, then the standard scavenging process starts, just like any other Sitecore cache.

• <physicalMemoryLimitPercentage>0</physicalMemoryLimitPercentage>: Sets the percentage amount of physical memory to use for caching. This parameter is for future usage and can be ignored at the moment.

• <pollingInterval>00:03:00</pollingInterval>: Sets the interval between the scavenging process for the Commerce Cache.

• <cacheExpiryInSeconds>1800</cacheExpiryInSeconds>: Sets the amount of time to retain an item in the cache. An item that has been cached for longer than the value specified in the cacheExpiryInSeconds parameter is considered staled. The scavenging process removes staled items from the cache.