Memcached (not memcache) PHP extension on Windows

后端 未结 3 1607
眼角桃花
眼角桃花 2021-01-04 09:13

I can\'t seem to find the MemcacheD extension for PHP.

There are a few compilations of php_memcache.dll, but that\'s not the same.

The main

3条回答
  •  暖寄归人
    2021-01-04 09:45

    I know the memcached has some other features but its interface is nearly identical with that of memcache extension. You can very easily get away with such code and in my case it works perfectly well. If you don't have the memcached loaded create this file:

    
    _instance = new Memcache;
           }
    
           public function __call($name, $args) {
                return call_user_func_array(array($this->_instance, $name), $args);
           }
    
           public function setOption() {}
        }
    
    
    

    Either include it or configure autoloader to pick it up. Of course you'll need a properly configured memcache instance and addServer calls but such calls should already be in the code if the codebase assumes Memcached. I hope it helps someone/

提交回复
热议问题