Log in
Model

KeyValidationWithInMemoryCacheDecorator

Magento\PaymentServicesBase\Model\ServicesConnector\KeyValidationWithInMemoryCacheDecorator

What it does

This class decorates the KeyValidationInterface to add in-memory caching for API key validation results.

It prevents redundant validation calls by storing results in memory for the same extension and environment combination, improving performance when the same keys are validated multiple times during a single request lifecycle.

Public Methods

  • execute()