public function checkMemcache(string $url, string $sha1)
    {
        if (!$this->memcache_enabled) {
            return $sri = null; // Not possible.
        } elseif (is_string($sri = $this->c::memcacheGet('sris', $sha1))) {
            return $sri; // Ideal; this avoids disk IO.
        }
        return $sri = null; // Not in the cache.
    }
public function checkMemcache(string $url, string $sha1)
    {
        if (!$this->memcache_enabled) {
            return $sri = null; // Not possible.
        } elseif (is_string($sri = $this->c::memcacheGet('sris', $sha1))) {
            return $sri; // Ideal; this avoids disk IO.
        }
        return $sri = null; // Not in the cache.
    }
public function checkMemcache ( string $ url , string $ sha1 ) { if ( ! $ this -> memcache_enabled ) { return $ sri = null ; // Not possible. } elseif ( is_string ( $ sri = $ this -> c :: memcacheGet ( 'sris' , $ sha1 ) ) ) { return $ sri ; // Ideal; this avoids disk IO. } return $ sri = null ; // Not in the cache. }
Checks for SRI in memcache.

@since 170211.63148 SRI utils.

@param string $url  URL to get SRI for.
@param string $sha1 SHA-1 hash of URL.

@return string|null SRI hash, else `null`.
Checks for SRI in memcache .