src/Fetch.php
static public function secureUrlCached($url, $params = []) {
        if (is_array($url)) {
            $url = implode("/", $url);
        }
        $cacheKey = Cached::keymaker(__METHOD__, $url, $params);
        $cached = new Cached($cacheKey);
        if (!$cached->exists()) {
            $result = self::secureUrl($url, $params);
            syslog(LOG_INFO, "Returned " . count($result) . " rows.");
            $cached->set($result);
        }
        return $cached->get();
    }
static public function secureUrlCached($url, $params = []) {
        if (is_array($url)) {
            $url = implode("/", $url);
        }
        $cacheKey = Cached::keymaker(__METHOD__, $url, $params);
        $cached = new Cached($cacheKey);
        if (!$cached->exists()) {
            $result = self::secureUrl($url, $params);
            syslog(LOG_INFO, "Returned " . count($result) . " rows.");
            $cached->set($result);
        }
        return $cached->get();
    }
static public function secureUrlCached ( $ url , $ params = [ ] ) { if ( is_array ( $ url ) ) { $ url = implode ( "/" , $ url ) ; } $ cacheKey = Cached :: keymaker ( __METHOD__ , $ url , $ params ) ; $ cached = new Cached ( $ cacheKey ) ; if ( ! $ cached -> exists ( ) ) { $ result = self :: secureUrl ( $ url , $ params ) ; syslog ( LOG_INFO , "Returned " . count ( $ result ) . " rows." ) ; $ cached -> set ( $ result ) ; } return $ cached -> get ( ) ; }
Wrapper that caches hits towards an service. Internal or otherwise.

@param $url
@param array $params
@return mixed|\the
@throws \Exception
Wrapper that caches hits towards an service . Internal or otherwise .