make memcachecache pay attention to the URI
This commit is contained in:
parent
69bfc1868e
commit
9cb7946d69
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user