Model
CacheStorage
Magento\InventoryIndexer\Model\GetStockItemData\CacheStorage
What it does
This class provides in-memory caching for stock item data during inventory indexing operations.
Developers use this to temporarily store and retrieve stock information by stock ID and SKU, improving performance by reducing database queries during bulk inventory operations.
It implements ResetAfterRequestInterface to automatically clear the cache after each request.
Public Methods
- _resetState()
- set()
- get()
- delete()