记忆快取与记忆快取 [英] Memcache Vs. Memcached

查看:73
本文介绍了记忆快取与记忆快取的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

可能重复:
在PHP中使用Memcache与Memcached

Possible Duplicate:
Using Memcache vs Memcached with PHP

有人可以解释我在PHP环境中Memcache和Memcached之间的区别吗? 一个相对于另一个的优点是什么? 您还可以建议用来在一个或另一个之间进行选择的标准吗?

Someone can explain me the difference between Memcache and Memcached in PHP environment? What are the advantages of one over the other? Can you also suggest the criteria used to choose between one or the other?

推荐答案

(部分从ServerFault盗窃 )

我认为两者在功能上是相同的,但是它们只是作者不同,而且一个人的名字比另一个人的名字更恰当.

I think that both are functionally the same, but they simply have different authors, and the one is simply named more appropriately than the other.

这里是命名约定的快速背景知识(对于那些不熟悉的人),这解释了问问者的挫败感:对于许多* nix应用程序,完成后端工作的部分称为守护程序"(认为是服务")在Windows操作系统中),而界面或客户端应用程序就是您用来控制或访问守护程序的工具.守护程序最常与客户端命名,并在其后附加字母"d".例如,"imap"将是连接到"imapd"守护程序的客户端.

Here is a quick backgrounder in naming conventions (for those unfamiliar), which explains the frustration by the question asker: For many *nix applications, the piece that does the backend work is called a "daemon" (think "service" in Windows-land), while the interface or client application is what you use to control or access the daemon. The daemon is most often named the same as the client, with the letter "d" appended to it. For example "imap" would be a client that connects to the "imapd" daemon.

当您阅读memcache模块的简介时,memcache显然遵循了这种命名约定(请注意,在此摘录中,memcache和memcached之间的区别):

This naming convention is clearly being adhered to by memcache when you read the introduction to the memcache module (notice the distinction between memcache and memcached in this excerpt):

Memcache模块提供了方便 程序和面向对象 与memcached的接口,高度 有效的缓存守护程序,这是 专为减少 动态Web中的数据库负载 应用程序.

Memcache module provides handy procedural and object oriented interface to memcached, highly effective caching daemon, which was especially designed to decrease database load in dynamic web applications.

Memcache模块还提供了一个 会话处理程序(内存缓存).

The Memcache module also provides a session handler (memcache).

有关memcached罐的更多信息 可以在»找到 http://www.danga.com/memcached/.

More information about memcached can be found at » http://www.danga.com/memcached/.

令人沮丧的是PHP扩展的作者,该扩展名错误地命名为memcached,因为它与实际的守护程序memcached具有相同的名称.还要注意,在memcached(php模块)的简介中,提到了libmemcached,它是模块用来访问memcached守护程序的共享库(或API):

The frustration here is caused by the author of the PHP extension which was badly named memcached, since it shares the same name as the actual daemon called memcached. Notice also that in the introduction to memcached (the php module), it makes mention of libmemcached, which is the shared library (or API) that is used by the module to access the memcached daemon:

memcached是高性能的, 分布式内存对象缓存 系统,本质上是通用的,但是 用于加速 动态Web应用程序 减轻数据库负载.

memcached is a high-performance, distributed memory object caching system, generic in nature, but intended for use in speeding up dynamic web applications by alleviating database load.

此扩展使用libmemcached 提供API的库 与Memcached服务器通信. 它还提供了一个会话处理程序 (内存缓存).

This extension uses libmemcached library to provide API for communicating with memcached servers. It also provides a session handler (memcached).

有关libmemcached的信息可以是 在»找到 http://tangent.org/552/libmemcached.html .

Information about libmemcached can be found at » http://tangent.org/552/libmemcached.html.

这篇关于记忆快取与记忆快取的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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