RedirectDataCacheSerializer
Magento\Store\Model\StoreSwitcher\RedirectDataCacheSerializer
What it does
This class handles secure data serialization during store switching operations by temporarily caching redirect data.
When a customer switches between different store views, it generates a random token, stores the redirect data in cache for 10 seconds, and allows retrieval using that token.
Developers use this when implementing custom store switcher functionality that needs to pass data securely between stores without exposing it in URLs.
Public Methods
- serialize()
- unserialize()