gap-db / orm-cache
GapOrm 缓存
1.0.5
2016-06-24 19:53 UTC
Requires
- php: >=5.4.0
- gap-db/orm: 1.*
This package is not auto-updated.
Last update: 2024-09-22 07:27:52 UTC
README
Gap Orm 缓存,支持 "memcache" 驱动
需求
PHP > 5.4.0
安装
如果你使用Composer来管理项目依赖,请将以下内容添加到你的 "composer.json" 文件中:
"require": {
"gap-db/OrmCache": "1.*"
}
更新模块配置列表 - safan-framework-standard/application/Settings/modules.config.php
<?php
return [
// Safan Framework default modules route
'Safan' => 'vendor/safan-lab/safan/Safan',
'SafanResponse' => 'vendor/safan-lab/safan/SafanResponse',
// Write created or installed modules route here ... e.g. 'FirstModule' => 'application/Modules/FirstModule'
'GapOrm' => 'vendor/gap-db/orm/GapOrm',
'GapOrmCache' => 'vendor/gap-db/OrmCache/GapOrmCache',
];
添加配置 - safan-framework-standard/application/Settings/main.config.php
<?php
'init' => [
...
'gapOrmCache' => [
'class' => 'GapOrmCache\GapOrmCache',
'method' => 'init',
'params' => [
'prefix' => 'prefix',
'driver' => 'memcache'
]
],
...
]