Home > Backend Development > PHP Tutorial > The difference between php memcache and memcached_PHP tutorial

The difference between php memcache and memcached_PHP tutorial

WBOY
Release: 2016-07-13 10:49:24
Original
917 people have browsed it

This article will introduce to you the differences between php memcache and memcached. I hope some methods will be helpful to you.

The first thing to make sure is that the memcached service must be enabled in order to use memcache and memcached’s php api.

So what are the differences between these two APIs for the memcached service?


1. memcache is PHP's own extension, and memcached is an extension based on libmemcached.

2.memcache only provides some basic functions, such as set, get, replace, delete, flush, etc.,

Memcached provides richer functions, including setOption (setOptions), cas, getMulti (setMulti), getMultiByKey (setMultiByKey), addServers (with s, multiple nodes can be connected at one time).

3. I heard that memcached has higher performance than memcache because it supports binary protocol.

4.memcache supports persistent connections, but memcached does not.

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/632697.htmlTechArticleThis article will introduce to you the differences between php memcache and memcached. I hope some methods will be useful to you. Help. The first thing to make sure is that the memcached service must be enabled...
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template