Model
CacheStorage
Magento\InventoryConfiguration\Model\LegacyStockItem\CacheStorage
What it does
This class provides in-memory caching for legacy CatalogInventory StockItem objects, storing them by product SKU.
Developers use this to improve performance by avoiding repeated database queries for the same stock item within a single request.
The cache automatically clears after each request through the ResetAfterRequestInterface implementation.
Public Methods
- _resetState()
- set()
- get()
- delete()