SQLBuilder icon indicating copy to clipboard operation
SQLBuilder copied to clipboard

Support SQL query cache

Open c9s opened this issue 10 years ago • 2 comments

c9s avatar Nov 28 '14 14:11 c9s

PreparedQuery $pq = QueryCachePool::cacheBy('cache-key', function(....) use ($name) {

 $q = new SelectQuery;
 $q->select('id');
 $q->where()
      ->equal('name', $name)
 return $q;

});

c9s avatar Dec 12 '14 09:12 c9s

We might need to apply different data to the query string, thus this issue needs more thinking.

c9s avatar Jan 07 '15 09:01 c9s