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);
 }