make memcachecache pay attention to the URI

This commit is contained in:
Shish 2010-02-09 15:13:24 +00:00
parent 69bfc1868e
commit 9cb7946d69

View File

@ -183,8 +183,9 @@ class MemcacheCache implements CacheEngine {
var $hits=0, $misses=0;
public function __construct($args) {
$hp = split(":", $args);
$this->memcache = new Memcache;
$this->memcache->pconnect('localhost', 11211) or ($this->use_memcache = false);
@$this->memcache->pconnect($hp[0], $hp[1]);
}
public function get($key) {