

Memcache is developed entirely within the PHP framework, and memecached uses libmemcached. The following points are only personal Views, I hope friends to add and correct.įirst of all, we can clearly see the difference between the two from the official PHP manual: It is necessary to analyze the difference between the two here. Even when memcached is mentioned, some people first think of the daemon process in the background. However, memcached and memcache have the same name as the daemon process memcached, which is easy to cause confusion. It can be seen that different languages have their own extensions for Memcache! The difference between memcache extension and memcached extension in PHPįor this memory caching system, PHP has two extensions, namely memcache and memcached extensions. So everyone should understand, the following is a diagram to help understand: The specific differences will be discussed later! From the manual, memcached has several more methods than memcache, and the usage methods are similar. The memcache extension is entirely in PHP developed framework, and the memecached extension uses libmemcached.
Memcached php software#
Due to this naming problem, many people call this software system memcache, and it is no problem to call it memcached ! PHP has two PECL extensions for the above software: one is called memcache and the other is called memcached Since its working mechanism is to open up a space in the memory, and then create a HashTable, the Memcache software project is generally called Memcache, but the main program file of the project is called memcached.exe, which is managed by the daemon on the server side.

It can handle any number of connections and use non-blocking network IO. Used to speed up dynamic web applications and lighten the database load. Memcache is a free and open source, high-performance, allocated memory object caching system.
Memcached php how to#
In fact, it doesn't matter what you say, as long as you really understand and know how to use it! But because I encountered this doubt when studying like me, I would like to share the reasons for it: Memcache is a software
