PHP Class Webiny\Component\Config\ConfigCache

Inheritance: use trait Webiny\Component\StdLib\StdLibTrait
Afficher le fichier Open project: Webiny/Framework Class Usage Examples

Méthodes publiques

Méthode 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

Méthode Description
isMd5 ( String $md5 ) : boolean Checks if md5 string is valid

Method Details

createCacheKey() public static méthode

Create cache key for storing ConfigObject
public static createCacheKey ( $resource ) : mixed
$resource
Résultat mixed

getCache() public static méthode

Get config from cache
public static getCache ( mixed $resource ) : ConfigObject
$resource mixed
Résultat ConfigObject

setCache() public static méthode

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