缓存MySQL查询 [英] Caching MySQL queries
本文介绍了缓存MySQL查询的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
是否有一种简单的方法可以将MySQL queries
缓存在PHP
中或失败,是否有一个小型的类集,有人编写了该类并使其可用?我可以缓存整个页面,但是由于某些数据更改将无法正常工作,而有些则不能,因此我希望缓存不存在的部分.
Is there a simple way to cache MySQL queries
in PHP
or failing that, is there a small class set that someone has written and made available that will do it? I can cache a whole page but that won't work as some data changes but some do not, I want to cache the part that does not.
推荐答案
这是有关如何在MySQL中缓存查询的很好的概述:
This is a great overview of how to cache queries in MySQL:
这篇关于缓存MySQL查询的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文