for compiling under hiphop
This commit is contained in:
parent
e731b59676
commit
23216d7549
@ -180,12 +180,14 @@ class NoCache implements CacheEngine {
|
||||
public function get_misses() {return 0;}
|
||||
}
|
||||
class MemcacheCache implements CacheEngine {
|
||||
var $hits=0, $misses=0;
|
||||
var $memcache=null, $hits=0, $misses=0;
|
||||
|
||||
public function __construct($args) {
|
||||
$hp = split(":", $args);
|
||||
$this->memcache = new Memcache;
|
||||
@$this->memcache->pconnect($hp[0], $hp[1]);
|
||||
if(class_exists("Memcache")) {
|
||||
$this->memcache = new Memcache;
|
||||
@$this->memcache->pconnect($hp[0], $hp[1]);
|
||||
}
|
||||
}
|
||||
|
||||
public function get($key) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user