ilexn / idiorm-cache
该包已被废弃,不再维护。未建议替代包。
idorm 数据库文件缓存
v1.1.1
2016-02-29 08:33 UTC
Requires
- j4mie/idiorm: v1.5.1
- tedivm/stash: 0.14.*
Requires (Dev)
- phpunit/phpunit: ^4.8.0
README
如何自动加载
require_once '../vendor/autoload.php';
$dbCache = new \Ilex\Cache\IdiormCache(__DIR__ .'/../cache/db/');
ORM::configure('cache_query_result', array($dbCache,'save'));
ORM::configure('check_query_cache', array($dbCache,'isHit'));
ORM::configure('clear_cache', array($dbCache,'clear'));
ORM::configure('create_cache_key',array($dbCache,'genKey') );
需要学习编写测试
Idiorm 由 https://github.com/j4mie/idiorm 创建