AddressRegistry
Magento\Customer\Model\AddressRegistry
What it does
AddressRegistry is a registry pattern implementation that caches and manages customer address model instances during a request lifecycle.
Developers use this class to efficiently retrieve address models by ID without repeatedly loading them from the database, and to ensure the same address instance is used throughout a request.
It implements ResetAfterRequestInterface to clear the cache after each request completes.
Public Methods
- retrieve()
- remove()
- push()
- _resetState()