make memcachecache pay attention to the URI

This commit is contained in:
Shish 2010-02-09 15:13:24 +00:00
parent 08fd957933
commit c3cc2f6097

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) {