Log in
Model

GetStockItemsDataCache

Magento\InventoryIndexer\Model\ResourceModel\GetStockItemsDataCache

What it does

This class provides cached access to stock item data for multiple SKUs and a specific stock.

It acts as a performance optimization layer by checking cache first before querying the database, reducing redundant database calls when retrieving inventory information.

Developers would use this when they need to fetch stock data for products and want to benefit from automatic caching.

Public Methods

  • execute()