MemCached是什么
Memcached is an in-memory key-value store for small chunks of arbitrary data (strings, objects) from results of database calls, API calls, or page rendering. (http://memcached.org/)
MemCached从字面上看就是在Memerory中进行Cache,即把经常需要从数据库取出的数据缓存到内存中。
为什么用MemCached
在高并发的情况下,数据库很可能会无法满足访问需求而成为系统瓶颈,此时对于那些变化不那么快、实时性不高的信息就没必要从数据库中读取,可以直接读取服务器内存。Ubuntu下如何使用MemCached
3.1 安装memcached
3.1.1 从源码wget http://memcached.org/latest tar -zxvf memcached-1.x.x.tar.gz cd memcached-1.
MemCached定义、安装、配置和小例子
最新推荐文章于 2023-02-13 10:12:44 发布