本文整理汇总了PHP中phpFastCache::getInstance方法的典型用法代码示例。如果您正苦于以下问题:PHP phpFastCache::getInstance方法的具体用法?PHP phpFastCache::getInstance怎么用?PHP phpFastCache::getInstance使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类phpFastCache
的用法示例。
在下文中一共展示了phpFastCache::getInstance方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: __construct
public function __construct()
{
$system = CoreLoader::$system;
date_default_timezone_set($system['default_timezone']);
$this->registerErrorHandle();
$this->router = CoreInput::$router;
$this->input = new CoreInput();
$this->model = new CoreModelLoader();
$this->lib = new CoreLibLoader();
$this->rule = new CoreRule();
$this->cache = phpFastCache::getInstance($system['cache_config']['storage'], $system['cache_config']);
if ($system['autoload_db']) {
$this->database();
}
if (!empty($system['language'])) {
self::$locale = new CoreLocale($system['language']);
}
Fn::stripslashes_all();
}
示例2: __construct
public function __construct()
{
$system = WoniuLoader::$system;
date_default_timezone_set($system['default_timezone']);
$this->registerErrorHandle();
$this->router = WoniuInput::$router;
$this->input = new WoniuInput();
$this->model = new WoniuModelLoader();
$this->lib = new WoniuLibLoader();
if (class_exists('WoniuRule', FALSE)) {
$this->rule = new WoniuRule();
}
if (class_exists('phpFastCache', false)) {
$this->cache = phpFastCache::getInstance($system['cache_config']['storage'], $system['cache_config']);
}
if ($system['autoload_db']) {
$this->database();
}
stripslashes_all();
}
示例3: __construct
public function __construct()
{
$system = CoreLoader::$system;
$this->phpFastCache = phpFastCache::getInstance($system['cache_config']['storage'], $system['cache_config']);
}