Log in
Factory

SocketFactory

Magento\CacheInvalidate\Model\SocketFactory

What it does

This factory class creates instances of Laminas HTTP socket adapters used for cache invalidation operations in Magento 2.

Developers would use this when they need to establish socket connections to external cache servers (like Varnish) to send invalidation requests.

The factory pattern provides a centralized way to instantiate socket adapters throughout the cache invalidation module.

Public Methods

  • create()