CacheIdFactorProviderInterface
Magento\GraphQlCache\Model\CacheId\CacheIdFactorProviderInterface
What it does
This interface defines a contract for providers that contribute factors to the GraphQL cache identifier (X-Magento-Cache-Id header).
Developers implement this interface to add custom cache segmentation factors like store view, customer group, or currency that determine when cached GraphQL responses can be reused.
Each provider contributes a name-value pair that becomes part of the unique cache key for GraphQL queries.
Public Methods
- getFactorName()
- getFactorValue()