Model
StoreRepository
Magento\Store\Model\StoreRepository
What it does
This repository class manages the retrieval and caching of store entities in Magento 2.
Developers use it to fetch store information by code or ID, get lists of all stores, or retrieve only active stores.
It implements a caching mechanism to avoid redundant database queries and provides a clean() method to reset the cache when stores are modified.
Public Methods
- get()
- getActiveStoreByCode()
- getById()
- getActiveStoreById()
- getList()
- clean()