Property | Type | Description | |
---|---|---|---|
$bag | array | memory cache | |
$cache | Xpressengine\Support\CacheInterface | cache instance | |
$prefix | string | Prefix for cache key | |
$repo | Xpressengine\Config\ConfigRepository | repository instance |
Method | Description | |
---|---|---|
__construct ( Xpressengine\Config\ConfigRepository $repo, Xpressengine\Support\CacheInterface $cache ) | create instance | |
affiliate ( |
affiliated to another config | |
clearLike ( |
clear all just descendants vars | |
fetchAncestor ( string $siteKey, string $name ) : array | search ancestors getter | |
fetchDescendant ( string $siteKey, string $name ) : array | search descendants getter | |
find ( string $siteKey, string $name ) : |
search getter | |
foster ( |
Parent Changing with descendant | |
remove ( string $siteKey, string $name ) : void | remove | |
save ( |
save |
Method | Description | |
---|---|---|
erase ( string $siteKey, string $name ) : void | Remove cache data | |
getCacheKey ( string $keyword ) : string | String for cache key | |
getData ( string $siteKey, string $head ) : array | get cached data | |
makeKey ( string $siteKey, string $name ) : string | Make key by combination of site key and config name |
Method | Description | |
---|---|---|
getHead ( string $name ) : array | parse name to head and segments |
public __construct ( Xpressengine\Config\ConfigRepository $repo, Xpressengine\Support\CacheInterface $cache ) | ||
$repo | Xpressengine\Config\ConfigRepository | repository instance |
$cache | Xpressengine\Support\CacheInterface | cache instance |
protected getCacheKey ( string $keyword ) : string | ||
$keyword | string | keyword |
return | string |
public save ( |
||
$config | config object | |
return |
protected CacheInterface,Xpressengine\Support $cache | ||
return | Xpressengine\Support\CacheInterface |