Log in
Model

RecentlyComparedStorageConfiguration

Magento\Catalog\Model\Widget\RecentlyComparedStorageConfiguration

What it does

This class provides storage configuration for the Recently Compared Products widget in Magento 2.

It retrieves the lifetime setting from the admin configuration that determines how long recently compared product data should be stored in frontend storage.

Developers use this when working with the recently compared products feature to ensure proper data persistence and expiration.

Public Methods

  • get()