src/Repository/Psr6Ncr.php
protected function beforeSaveCacheItem(CacheItemInterface $cacheItem, Node $node): void
    {
        $cacheItem->expiresAfter(null)->expiresAt(null);
    }
protected function beforeSaveCacheItem(CacheItemInterface $cacheItem, Node $node): void
    {
        $cacheItem->expiresAfter(null)->expiresAt(null);
    }
protected function beforeSaveCacheItem ( CacheItemInterface $ cacheItem , Node $ node ) : void { $ cacheItem -> expiresAfter ( null ) -> expiresAt ( null ) ; }
Prepares the cache item before it's saved into the cache pool.
By default, all nodes are stored in cache forever, to change this behavior
either set the default ttl on the cache provider, or tweak the expiry on
a per item basis by overriding this method.

@param CacheItemInterface $cacheItem
@param Node               $node
Prepares the cache item before it s saved into the cache pool . By default all nodes are stored in cache forever to change this behavior either set the default ttl on the cache provider or tweak the expiry on a per item basis by overriding this method .