Query Cache

In RedBeanPHP 3.4 you can use a very easy-to-use caching system: the Query Writer Cache. This caching mechanism will return the same result set for identical query-value pairs. The cache gets automatically flushed everytime something other than a select query is fired (i.e. an INSERT or DELETE). This means that this is a relatively safe cache to use. Issue the following statement to activate the Query Writer Cache:


    R
::$writer->setUseCache(true);


 
 

RedBeanPHP Easy ORM for PHP © 2013 Gabor de Mooij and the RedBeanPHP community - Licensed New BSD/GPLv2