Model
GetCache
Magento\Inventory\Model\Stock\Command\GetCache
What it does
This class provides cached access to stock data in Magento's Multi-Source Inventory (MSI) system.
It stores retrieved stock objects in memory to avoid redundant database queries when the same stock is requested multiple times during a single request.
Developers use this instead of direct stock retrieval to improve performance when working with inventory stocks.
Public Methods
- _resetState()
- execute()