当前仓库属于暂停状态,部分功能使用受限,详情请查阅 仓库状态说明
1 Star 0 Fork 4

李照耀/sg-cache
暂停

forked from 百里/sg-cache
暂停
 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
autoload.php 630 Bytes
一键复制 编辑 原始数据 按行查看 历史
win 提交于 2018-04-09 11:15 +08:00 . 新增memcache
<?php
header('Content-type:text/html;charset=utf-8');
/**
* 注册自动加载函数
* User: freelife2020@163.com
* Date: 2018/3/27
* Time: 9:33
*/
if (PHP_VERSION_ID <= 50300) {
throw new Exception('The PHP version must be greater than or equal to 5.3.0');
}
spl_autoload_register(function ($className) {
$namespace = 'SgIoc\\Cache';
if (strpos($className, $namespace) === 0) {
$fileName = str_replace($namespace, '', $className);
$fileName = str_replace('\\', '/', __DIR__ . '/src' . $fileName . '.php');
if (is_file($fileName)) {
require_once($fileName);
}
}
});
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
PHP
1
https://gitee.com/lizhaoyao/caching_engine.git
git@gitee.com:lizhaoyao/caching_engine.git
lizhaoyao
caching_engine
sg-cache
master

搜索帮助