function __construct() { $cacheFactory = new CacheFactory(); $this->cache = $cacheFactory->createCache(); }