PHP Class Webiny\Component\Config\ConfigCache

Inheritance: use trait Webiny\Component\StdLib\StdLibTrait
Show file Open project: Webiny/Framework Class Usage Examples

Public Methods

Method Description
createCacheKey ( $resource ) : mixed Create cache key for storing ConfigObject
getCache ( mixed $resource ) : ConfigObject Get config from cache
setCache ( string $cacheKey, ConfigObject $config ) Set config cache

Private Methods

Method Description
isMd5 ( String $md5 ) : boolean Checks if md5 string is valid

Method Details

createCacheKey() public static method

Create cache key for storing ConfigObject
public static createCacheKey ( $resource ) : mixed
$resource
return mixed

getCache() public static method

Get config from cache
public static getCache ( mixed $resource ) : ConfigObject
$resource mixed
return ConfigObject

setCache() public static method

Set config cache
public static setCache ( string $cacheKey, ConfigObject $config )
$cacheKey string
$config ConfigObject