CodeIgniter Forums
DB Activerecord Cache - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Libraries & Helpers (https://forum.codeigniter.com/forumdisplay.php?fid=22)
+--- Thread: DB Activerecord Cache (/showthread.php?tid=56634)



DB Activerecord Cache - El Forum - 01-08-2013

[eluser]XMadMax[/eluser]
I have simplified one of my 'essential' libraries, and I want to share with the community:

XCache is a library to cache sql commands and also any activerecord command the time you have configured for each query/group of queries.

A group of queries would be getUser, getUserById, getUserByName...
Each of this can have a different configured TTL (time to live).

Now can save cache in files and memcache, compressed and uncompressed. I am working to add redis, apc and mongodb drivers.

Works with any codeigniter drivers (oracle, mysql, pdo. postgress, sqlite...)


Easy to install and test.

Whats's next ?:

1) Add examples to use page cache, methods cache, views cache and url's cache.
2) XCache is now prepared to use CI driver library. I want to separate logic to memcache/files, and add redis and mongodb to drivers.



DB Activerecord Cache - El Forum - 01-11-2013

[eluser]XMadMax[/eluser]
New version 1.2.

Added Driver capability, with file and memcache drivers.

Solved getQuery, returned only result(), now returns CI_DB_result




DB Activerecord Cache - El Forum - 01-11-2013

[eluser]XMadMax[/eluser]
Updated library due a case problems in Linux.