Log in
Model

RegionModelsCache

Magento\Customer\Model\Address\AbstractAddress\RegionModelsCache

What it does

This class provides a temporary cache for storing and retrieving Region models during a single request lifecycle.

Developers use it to avoid repeatedly loading the same region data from the database when processing multiple customer addresses in the same request.

The cache automatically clears itself after each request completes, ensuring fresh data on subsequent requests.

Public Methods

  • _resetState()
  • add()
  • get()