PHP缓存的最佳方法 [英] The best way of PHP Caching

查看:71
本文介绍了PHP缓存的最佳方法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

目前,我正在尝试编写有关电子商务的软件.我的数据通常只是MySQL查询.例如语言变量结果( err_no_cat => No category found)

Currently, I am trying to write a software about ecommerce. My data is usually just MySQL queries. For instance language variable results (err_no_cat => No category found)

哪种方法是在PHP中缓存此类数据的最佳和简单方法?

Which way is the best and simple method to cache like these data in PHP?

推荐答案

memcache是​​一个非常常见的解决方案. Facebook和其他一些知名品牌都在使用它.可能很快.

memcache is a pretty common solution. Facebook and some other big names use it. It can be very fast.

http://php.net/manual/en/book.memcache.php

这篇关于PHP缓存的最佳方法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆