Contao\Cache::__set PHP Method

__set() public method

Add a cache entry
Deprecation: Deprecated since Contao 4.0, to be removed in Contao 5.0. Use Cache::set() instead.
public __set ( string $strKey, mixed $varValue )
$strKey string The cache key
$varValue mixed The data to be stored
    public function __set($strKey, $varValue)
    {
        static::set($strKey, $varValue);
    }