Webiny\Component\Config\ConfigCache::setCache PHP Метод

setCache() публичный статический Метод

Set config cache
public static setCache ( string $cacheKey, ConfigObject $config )
$cacheKey string
$config ConfigObject
    public static function setCache($cacheKey, $config)
    {
        if (!self::isArrayObject(self::$configCache)) {
            self::$configCache = self::arr(self::$configCache);
        }
        self::$configCache->key($cacheKey, $config);
    }

Usage Example

Пример #1
0
 public function __wakeup()
 {
     ConfigCache::setCache($this->cacheKey, $this);
 }