ecos的setting

类似windows的注册表

数据是存储在kvstore中的

当通过key在kvstore中取不到数据,会加载app/$app_name/setting.php,在setting.php中查找,找到后放入kvstore中,下次就从kvstore中取。

最好是在系统上线前通过脚本把app的setting数据塞到kvstore中

setConf存储

app:get($app_name)->setConf($key,$value);

getConf取回

app:get($app_name)->getConf($key)

原文地址:https://www.cnblogs.com/motian06/p/3448346.html