. */ /** * Doctrine_Db_Cache * * @package Doctrine * @subpackage Doctrine_Db * @author Konsta Vesterinen * @license http://www.opensource.org/licenses/lgpl-license.php LGPL * @category Object Relational Mapping * @link www.phpdoctrine.com * @since 1.0 * @version $Revision$ */ class Doctrine_Db_Cache extends Doctrine_Db_EventListener { public function __construct($cacheDriver) { } public function onPreQuery(Doctrine_Db_Event $event) { $query = $event->getQuery(); $this->cache->process($query); } public function onQuery(Doctrine_Db_Event $event) { } public function onPrePrepare(Doctrine_Db_Event $event) { } public function onPrepare(Doctrine_Db_Event $event) { } public function onPreExec(Doctrine_Db_Event $event) { } public function onExec(Doctrine_Db_Event $event) { } public function onPreExecute(Doctrine_Db_Event $event) { $query = $event->getQuery(); $this->cache->process($query); } public function onExecute(Doctrine_Db_Event $event) { } }