Home > php教程 > php手册 > body text

windows平台安装php_memcache模块,平台php_memcache

WBOY
Release: 2016-06-13 09:07:41
Original
874 people have browsed it

windows平台安装php_memcache模块,平台php_memcache

要求

    • 必备知识

      熟悉基本编程环境搭建。

    • 运行环境

      windows 7(64位);
      php-5.3;
      memcached-1.2.6

    • 下载地址

      环境下载

什么是PHP Memcache模块

Memcache模块提供了于memcached方便的面向过程及面向对象的接口,memcached是为了降低动态web应用 从数据库加载数据而产生的一种常驻进程缓存产品。

下载

  • memcache官网
  • PHP Memcache下载地址

这里需要注意一下版本号,根据个人情况而定,我下的是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; ?>

在浏览器中进行测试,这里需要注意的是memcache服务必需在启动状态下哦。关于memcache服务在windows平台的安装,可以参考我之前写的一篇文章哦。

  • Memcache for Windows

还不错”按钮或到页面右下角点击 “赞一个” 按钮哦。你也可以点击页面右边“分享”悬浮按钮哦,让更多的人阅读这篇文章。

作者:Li-Cheng 微博:http://weibo.com/licheng0426 出处: http://www.cnblogs.com/Li-Cheng/p/4392461.html 由于本人水平有限,文章在表述和代码方面如有不妥之处,欢迎批评指正。留下你的脚印,欢迎评论哦。你也可以关注我,一起学习哦!

(^_^)如果您觉得此文对您有帮助的话,打个赏喝个咖啡吧,么么哒(^_^)

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!