public function findCacheByString(string $string, int $siteId = null)
    {

        // Check if already in cache
        if ($this->isCachedByString($string, $siteId)) {
            return $this->cacheByString[$siteId][$string];
        }

        return null;
    }
public function findCacheByString(string $string, int $siteId = null)
    {

        // Check if already in cache
        if ($this->isCachedByString($string, $siteId)) {
            return $this->cacheByString[$siteId][$string];
        }

        return null;
    }
public function findCacheByString ( string $ string , int $ siteId = null ) { // Check if already in cache if ( $ this -> isCachedByString ( $ string , $ siteId ) ) { return $ this -> cacheByString [ $ siteId ] [ $ string ] ; } return null ; }
Find an existing cache by Handle

@param string $string
@param int|null $siteId
@return BaseElement|ElementInterface|null
Find an existing cache by Handle