src/Traits/Cache/CacheFactoryTrait.php
public function getCacheFactory(): ?Factory
    {
        if (!$this->hasCacheFactory()) {
            $this->setCacheFactory($this->getDefaultCacheFactory());
        }
        return $this->cacheFactory;
    }
public function getCacheFactory(): ?Factory
    {
        if (!$this->hasCacheFactory()) {
            $this->setCacheFactory($this->getDefaultCacheFactory());
        }
        return $this->cacheFactory;
    }
public function getCacheFactory ( ) : ? Factory { if ( ! $ this -> hasCacheFactory ( ) ) { $ this -> setCacheFactory ( $ this -> getDefaultCacheFactory ( ) ) ; } return $ this -> cacheFactory ; }
Get cache factory

If no cache factory has been set, this method will
set and return a default cache factory, if any such
value is available

@see getDefaultCacheFactory()

@return Factory|null cache factory or null if none cache factory has been set
Get cache factory