简体   繁体   English

可以同时使用php-memcache和php-memcached吗?

[英]Is it possible to use php-memcache and php-memcached together?

I am moving from php-memcache to php-memcached, but trying to continue using the same cache without completely restarting the memcache servers. 我正在从php-memcache迁移到php-memcached,但是尝试继续使用相同的缓存,而无需完全重新启动memcache服务器。 Is it possible to do a set with php-memcache and a get with php-memcached? 是否可以用php-memcache进行设置,并用php-memcached进行获取?

I getting the error - 
int(-1001) string(15) "PAYLOAD FAILURE"

php-memcache
Version - 2.2.7
Revision - $Revision: 327750 $

php-memcached
Version - 2.2.0
libmemcached version - 1.0.18

php-memcache and php-memcached are both wrappers around the system memcached in a similar way that php-mysql and php-mysqli are both wrappers around the system mysql php-memcachephp-memcached都是围绕系统memcached包装器,类似于php-mysqlphp-mysqli都是围绕系统mysql包装器

So yes its possible. 所以是可能的。 You will be able to retrieve the data over telnet also for example http://www.darkcoding.net/software/memcached-list-all-keys/ 您还可以通过telnet检索数据,例如http://www.darkcoding.net/software/memcached-list-all-keys/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM