private function loadFromCache($key)
    {
        $encoded = (string) $this
            ->cache
            ->fetch($key);

        try {
            return is_string($encoded)
                ? $this
                    ->encoder
                    ->decode($encoded)
                : null;
        } catch (Exception $e) {
            // Silent pass
        }

        return null;
    }
private function loadFromCache($key)
    {
        $encoded = (string) $this
            ->cache
            ->fetch($key);

        try {
            return is_string($encoded)
                ? $this
                    ->encoder
                    ->decode($encoded)
                : null;
        } catch (Exception $e) {
            // Silent pass
        }

        return null;
    }
private function loadFromCache ( $ key ) { $ encoded = ( string ) $ this -> cache -> fetch ( $ key ) ; try { return is_string ( $ encoded ) ? $ this -> encoder -> decode ( $ encoded ) : null ; } catch ( Exception $ e ) { // Silent pass } return null ; }
Try to get menu configuration from cache.

@param string $key Identifier of the menu

@return MenuInterface|null Menu
Try to get menu configuration from cache .