ilexn / idiorm-cache
idorm db file cache
Installs: 39
Dependents: 0
Suggesters: 0
Security: 0
Stars: 3
Watchers: 1
Forks: 1
Open Issues: 0
pkg:composer/ilexn/idiorm-cache
Requires
- j4mie/idiorm: v1.5.1
- tedivm/stash: 0.14.*
Requires (Dev)
- phpunit/phpunit: ^4.8.0
README
How to autoload
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') );
need to learn to write test
Idiorm is created by https://github.com/j4mie/idiorm