我们可以在 ZF2 中实现没有 php_memcached.dll 的 memcache 吗? [英] Can we implement memcache without php_memcached.dll in ZF2?

查看:28
本文介绍了我们可以在 ZF2 中实现没有 php_memcached.dll 的 memcache 吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在我的 Zendframework 2 应用程序中实现 memcache.

I want to implement memcache into my Zendframework 2 application.

为此,是否可以仅使用 Zend 框架 2 库实现而无需 php_memcache.dll 和 php_memcached.dll?

For that, is it possible to implement only with Zend framework 2 library without php_memcache.dll and php_memcached.dll?

如果没有,我该如何安装 php_memcached.dll.我已经用谷歌搜索了 php_memcached.dll 他们提供了一些守护程序,请帮助我如何继续使用该守护程序.

If not, How can I install php_memcached.dll. I have searched with google for php_memcached.dll they have given some daemon, kindly help me how to proceed with that daemon.

我提到了这个链接:

memcached.dll 是否存在?

http://www.couchbase.com/forums/thread/libmemcacheddll-32-bit-and-64-bit-php-extensions

谢谢.

推荐答案

不仅可以用 Zend framewotk 来实现,还可以单独用 PHP 来实现

It isn't only possible to implement with Zend framewotk you can use it stand-alone with PHP

阅读本文以获得更多启示(memcache vs memcached):

Read this for more enlightment (memcache vs memcached):

我什么时候应该使用 Memcache 而不是 Memcached?

现在从 memcache 或 memcached 库中选择,我个人会选择 memcached,但由于您使用的是 Windows,我认为您唯一的选择是 memcache.

Now choose from memcache or memcached libs, Personally I would go to memcached, but since you are on windows I think your only choice is memcache.

下载这个压缩包:

http://windows.php.net/downloads/pecl/releases/memcache/3.0.8/php_memcache-3.0.8-5.4-ts-vc9-x86.zip

解压,将 php_memcache.dll 放到你的扩展目录,如果你使用的是 XAMPP,路径应该是 C:\xampp\php\extensions\

Unzip it, put php_memcache.dll in your extensions dir, if you are using XAMPP the path would be something like C:\xampp\php\extensions\

编辑您的 php.ini

并包括一行

extensions = php_memcache.dll

重启 Apache,然后安装内存缓存.

Restart the Apache, and boom you have memcache installed.

请参阅此文档以了解如何使用内存缓存

See this documentation on how to use memcache

http://www.php.net/manual/en/class.memcache.php

这篇关于我们可以在 ZF2 中实现没有 php_memcached.dll 的 memcache 吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆