最新文章专题视频专题问答1问答10问答100问答1000问答2000关键字专题1关键字专题50关键字专题500关键字专题1500TAG最新视频文章推荐1 推荐3 推荐5 推荐7 推荐9 推荐11 推荐13 推荐15 推荐17 推荐19 推荐21 推荐23 推荐25 推荐27 推荐29 推荐31 推荐33 推荐35 推荐37视频文章20视频文章30视频文章40视频文章50视频文章60 视频文章70视频文章80视频文章90视频文章100视频文章120视频文章140 视频2关键字专题关键字专题tag2tag3文章专题文章专题2文章索引1文章索引2文章索引3文章索引4文章索引5123456789101112131415文章专题3
当前位置: 首页 - 科技 - 知识百科 - 正文

「转」Memcache和Memcached客户端的区别

来源:动视网 责编:小采 时间:2020-11-09 13:14:40
文档

「转」Memcache和Memcached客户端的区别

「转」Memcache和Memcached客户端的区别:PHP Client Comparison There are primarily two clients used with PHP. One is the older, more widespreadpecl/memcacheand the other is the newer, less used, more feature richpecl/memcached. Both support the basics such as multiple servers,
推荐度:
导读「转」Memcache和Memcached客户端的区别:PHP Client Comparison There are primarily two clients used with PHP. One is the older, more widespreadpecl/memcacheand the other is the newer, less used, more feature richpecl/memcached. Both support the basics such as multiple servers,


PHP Client Comparison There are primarily two clients used with PHP. One is the older, more widespread?pecl/memcache?and the other is the newer, less used, more feature rich?pecl/memcached. Both support the basics such as multiple servers,

PHP Client Comparison

There are primarily two clients used with PHP. One is the older, more widespread?pecl/memcache?and the other is the newer, less used, more feature rich?pecl/memcached.

Both support the basics such as multiple servers, setting vaules, getting values, increment, decrement and getting stats.

Here are some more advanced features and information.

pecl/memcache pecl/memcached
First Release Date 2004-06-08 2009-01-29 (beta)
Actively Developed? Yes Yes
External Dependency None libmemcached
Features
Automatic Key Fixup1 Yes No
Append/Prepend No Yes
Automatic Serialzation2 Yes Yes
Binary Protocol No Optional
CAS No Yes
Compression Yes Yes
Communication Timeout Connect Only Various Options
Consistent Hashing Yes Yes
Delayed Get No Yes
Multi-Get Yes Yes
Session Support Yes Yes
Set/Get to a specific server No Yes
Stores Numerics Converted to Strings Yes
  1. pecl/memcache will convert an invalid key into a valid key for you. pecl/memcached will return false when trying to set/get a key that is not valid.
  2. You do not have to serialize your objects or arrays before sending them to the set commands. Both clients will do this for you.

—end–

原文链接:https://code.google.com/p/memcached/wiki/PHPClientComparison

PS:Memcache会将数字转成字符串存储这个坑刚踩到过~


评论| 作者: tomheng 85159e08d5f1f50d244825cb03e92c65 PHP Client Comparison There are primarily two clients u […]

文档

「转」Memcache和Memcached客户端的区别

「转」Memcache和Memcached客户端的区别:PHP Client Comparison There are primarily two clients used with PHP. One is the older, more widespreadpecl/memcacheand the other is the newer, less used, more feature richpecl/memcached. Both support the basics such as multiple servers,
推荐度:
标签: 区别 php 客户端
  • 热门焦点

最新推荐

猜你喜欢

热门推荐

专题
Top