Log in
Model

GetProductIdsBySkusCache

Magento\InventoryCatalog\Model\GetProductIdsBySkusCache

What it does

This class retrieves product IDs by their SKUs with caching functionality to improve performance.

It first checks the cache for existing SKU-to-ID mappings, and only queries the database for SKUs not found in cache.

Developers use this when they need to convert product SKUs to IDs efficiently, especially in inventory management operations where the same SKUs are frequently looked up.

Public Methods

  • execute()