SQLBuilder
SQLBuilder copied to clipboard
Support SQL query cache
PreparedQuery $pq = QueryCachePool::cacheBy('cache-key', function(....) use ($name) {
$q = new SelectQuery;
$q->select('id');
$q->where()
->equal('name', $name)
return $q;
});
We might need to apply different data to the query string, thus this issue needs more thinking.