Configuring memcached php memcached Java memcached website in Windows environment Redis memcached comparison

Source: Internet
Author: User
Tags php memcached
Memcached don't have to introduce--

1: Install memcached Server Software under Windows, download and upload cloud disk---Portal Remember to bring the key: YKRC

After the decompression inside the installation instructions are included in the installation tutorial.

2: Software installed in the server host, then PHP needs an extension to connect to the memcached, this extension is Memcache.dll, also download and upload to the cloud disk-helicopter remember with gasoline: ee5g

After decompression can see a lot of PHP version corresponding extensions, you need to choose their current PHP version corresponding to the extension, including thread-safe and non-thread-safe, x86 or x64.

Copy your corresponding extension to the PHP configuration file settings in the extended storage folder, usually in the installation and directory of the ext file, throw it in!

Then add Extension=php_memcache.dll to the configuration file, restart the server software to take effect, now happy to use the

3: If you are prompted for non-Win32 applications or do not recognize extensions or other unknown errors, please reconfirm whether the extension is selected.

4: Use Demo: If output value is normal, the installation is successful

 
 1 
   PHP23$memcache _obj = memcache_connect (' localhost ', 11211); 4 $memcache _obj->set (' key ', ' value '); 5 $value=$memcache _obj->get (' key '); 6 Echo $value;

The above describes the Windows environment configuration memcached PHP, including the memcached aspects of the content, I hope to be interested in PHP tutorial friends helpful.

  • 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.