WAMP Environment Installation Memcache extension

Source: Internet
Author: User
Tags phpinfo vars

These two days in the study tp the memcached cache always encounters pits
I found a lot of tutorials on the Internet.

Install memcached First
Download Memcache Compression Pack

Use cmd to install with administrator command
e:\wamp\bin\memcached>memcached.exe-d Install installation command
e:\wamp\bin\memcached>memcached.exe-d Start Open memcached

Then put the Php_memcache.dll in the attachment under the Ext Extension folder under PHP
Then go to modify php.ini file add a sentence Extension=php_memcache.dll

After the addition, restart Apache

Then output phpinfo () on the PHP page;

Check that the memcache is loaded successfully.

If the load is successful, you can do the memcache test on a php page.

    1. <?php
    2. Phpinfo ();
    3. $memcache = new Memcache;
    4. $memcache->connect ('127.0.0.1 ', 11211) or Die (' shit ');
    5. $memcache->set (' key ',' Hello memcache! ');
    6. $out = $memcache->get (' key ');
    7. echo $out;

WAMP Environment Installation Memcache extension

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.