ilexn/idiorm-cache

This package is abandoned and no longer maintained. No replacement package was suggested.

idorm db file cache

v1.1.1 2016-02-29 08:33 UTC

This package is auto-updated.

Last update: 2021-07-13 03:39:53 UTC


README

Coverage Status Scrutinizer Code Quality Build Status StyleCI SensioLabsInsight

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