Use of memcached in php. note: how to deal with non-memcache?

Source: Internet
Author: User
Tags php memcached
Use of memcached in php. Note: Non-memcache is used on the network but memcached needs to be used now. Environment: in windows, which of the following information or usage documents can be provided for memcached? (memcached. dll & nbsp ;? & Nbsp; memcached. so) use of memcached in php. Note: Non-memcache
Currently, memcache is used on the network, but memcached must be used now.
Environment: windows
Which of the following can provide information or usage of memcached (memcached. dll? Memcached. so)
There is no information on the network.
------ Solution --------------------
Http://www.jb51.net/article/27366.htm
Http://hi.baidu.com/andylu1988/item/ebb4087b15276d34714423b6

From apache to nginx, php's memcache is also migrated to memcached. However, memcached has many pitfalls and many bugs exist in the source code.
In the first half of this year, we have migrated data from memcache to memcached. However, there are n strange things. many solutions are to directly change the source code of memcached and avoid using the latest version.

We recommend that you have experienced migration. Otherwise, find the problem and find you dizzy.
------ Solution --------------------
Specifically, you can search by google, and baidu is unreliable. You can also go to the official website. The link I gave you is not very detailed.
------ Solution --------------------
Memcache is divided into server and client. php_memcache.dll is equivalent to the middleware installed on the php end to connect to the server. it inherits various interfaces connected to the server to be called by the php language; the server is an application running on the server. the official version is only based on the source code version under * nix, and the win version must be searched by Baidu. During the test, you need to start the server and then use php for access.
------ Solution --------------------
What's the difference? the php memcached update seems to have stopped for a long time.
------ Solution --------------------
Do you think you will use so many things now? Currently, the cache based on memcache basically supports read and save operations. other methods do not actually use much. At present, memcache extensions are basically used, and memcached is relatively small. Moreover, this extension relies on libmemcache (whether d has forgotten it) for compilation. Relatively speaking, the installation cost is relatively high
------ Solution --------------------
Memcached should be able to execute compilation in linux, but it is quite troublesome in Windows. I used to compile it, but I cannot learn c well ~~ However, memcache should be enough to use ~~ Some redis instances can be considered. Currently, this is quite popular ~
------ Solution --------------------
If lz uses lamp in linux, compile memcached and check the usage.
I think the web layer should not change much. if possible, compile and execute the code under win ,,,
------ Solution --------------------
Is there a big difference between the two? I'm a little white and I don't know how to use memcached.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.