Model/HealthModel.php
public function getCache()
    {
        if (!$this->cache) {
            $this->cache = new CacheStorageHelper(
                CacheStorageHelper::ADAPTOR_DATABASE,
                'Health',
                $this->em->getConnection()
            );
        }

        return [
            'delays'     => $this->cache->get('delays'),
            'lastCached' => $this->cache->get('lastCached'),
        ];
    }
public function getCache()
    {
        if (!$this->cache) {
            $this->cache = new CacheStorageHelper(
                CacheStorageHelper::ADAPTOR_DATABASE,
                'Health',
                $this->em->getConnection()
            );
        }

        return [
            'delays'     => $this->cache->get('delays'),
            'lastCached' => $this->cache->get('lastCached'),
        ];
    }
public function getCache ( ) { if ( ! $ this -> cache ) { $ this -> cache = new CacheStorageHelper ( CacheStorageHelper :: ADAPTOR_DATABASE , 'Health' , $ this -> em -> getConnection ( ) ) ; } return [ 'delays' => $ this -> cache -> get ( 'delays' ) , 'lastCached' => $ this -> cache -> get ( 'lastCached' ) , ] ; }
Get last delays from the cache.
Get last delays from the cache .