PHP memcached Use, note: Non-memcache, how to handle

Source: Internet
Author: User
Tags php memcached
Use of memcached in PHP, note: non-memcache
Now the network is memcache, but now need to get memcached.
Environment: Windows
Who can provide information about memcached or usage. (Memcached.dll memcached.so)
There is absolutely no data on the network.
------Solution--------------------
Http://www.jb51.net/article/27366.htm
Http://hi.baidu.com/andylu1988/item/ebb4087b15276d34714423b6

Migration from Apache to nginx,php Memcache also migrated to memcached, but memcached there are many pits, the source code also has a lot of bugs.
In the first half of this year we have migrated from Memcache to memcached, but there have been n strange things, many solutions are directly changed memcached source, and do not use the latest version and so on.

Recommended to have experienced migration, otherwise find the problem to find you dizzy.
------Solution--------------------
The specific you use Google search, Baidu is not reliable. You can also go to the official view. The link address I gave you is also not very detailed.
------Solution--------------------
Memcache is divided into servers and clients, Php_memcache.dll equivalent to the PHP side of the interface with the server to connect the middleware, it inherits the service retransmitting connected to the various interfaces to the PHP language calls, and the server is running on the application, the official version only based on the * Nix under the source code version, win version of the need to find Baidu search. When testing, you need to start the server and then use PHP to access
------Solution--------------------
There is a difference, not to mention the PHP memcached update seems to have stopped for a long time
------Solution--------------------
Do you think you're going to use so many things now, based on the memcache cache, basically read and save the two operations, the other methods used really little. And at present, basically are using memcache extension, memcached relatively few, and this extension relies on Libmemcache (d has not forgotten) to compile. Relatively speaking, the installation cost is still relatively high
------Solution--------------------
Memcached in Linux to perform the compilation should be good to say, win under the more trouble. Previously wanted to compile, but C study bad, can't ~ ~ But, memcache should be enough to use ~ ~ can consider some Redis, the current comparison of Fire ~
------Solution--------------------
Otherwise LZ to use lamp under Linux, and then compile the memcached, check the use of it.
I think the web layer should not change very much, if possible, the code under win compiled execution,,,
------Solution--------------------
Are these two big differences? I'm little white, I don't know, I used 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.