Log in
Model

GetStockItemDataCache

Magento\InventoryIndexer\Model\ResourceModel\GetStockItemDataCache

What it does

This class provides cached access to stock item data in Magento's Multi-Source Inventory system.

Developers use this class to efficiently retrieve stock information for a product (by SKU) at a specific stock location without repeatedly querying the database.

It acts as a performance optimization layer by storing frequently accessed stock data in memory during a single request.

Public Methods

  • execute()