Home > Article > Backend Development > Install php_memcache module on windows platform, platform php_memcache_PHP tutorial
Familiar with basic programming environment setup.
windows 7(64-bit);
php-5.3;
memcached-1.2.6
Environment download
The Memcache module provides convenient process-oriented and object-oriented interfaces to memcached. Memcached is a resident process cache product produced to reduce the load of data from the database by dynamic web applications.
You need to pay attention to the version number here. It depends on personal circumstances. I downloaded php_memcache-3.0.8-5.3-ts-vc9-x86.zip
php $memcache = new Memcache; $memcache->connect('127.0.0.1',11211); $memcache->set('key','hello memcache!'); $out = $memcache->get('key'); echo $out; ?>
Test in the browser. It should be noted that the memcache service must be started. Regarding the installation of the memcache service on the Windows platform, you can refer to an article I wrote before.
Not bad" button or go to the lower right corner of the page and click the "Like" button. You can also click the "Share" floating button on the right side of the page , let more people read this article
. Author:Li-Cheng Weibo: http://weibo.com/licheng0426 Source: http://www.cnblogs.com/Li-Cheng/p/4392461.html Due to my limited level, if there are any inaccuracies in the expression and code of the article, I welcome criticism and correction. Leave your footprints and comments are welcome. You can also follow me and learn together!