Contao\Cache::__get PHP Method

__get() public method

Return a cache entry
Deprecation: Deprecated since Contao 4.0, to be removed in Contao 5.0. Use Cache::get() instead.
public __get ( string $strKey ) : mixed | null
$strKey string The cache key
return mixed | null The cached data
    public function __get($strKey)
    {
        if (static::has($strKey)) {
            return static::get($strKey);
        }
        return null;
    }