index 036733333473b60e93c09f0889986249b61d3f9c..fd47ec861e21926b9c56b71cb041aad90bf9994f 100644 (file)
{
var $c_memcache = NULL;
var $b_connected= FALSE;
{
var $c_memcache = NULL;
var $b_connected= FALSE;
-
+
function __construct()
{
$this->connect();
function __construct()
{
$this->connect();
$this->close();
if(class_exists("Memcache")){
$this->c_memcache = new Memcache;
$this->close();
if(class_exists("Memcache")){
$this->c_memcache = new Memcache;
- $res = $this->c_memcache->connect("localhost",11211);
+ $res = $this->c_memcache->pconnect("localhost",11211);
if(!$res){
$this->b_connected = FALSE;
$this->c_memcache = NULL;
if(!$res){
$this->b_connected = FALSE;
$this->c_memcache = NULL;
}
}
}
}
- function get_server_status()
+ function status()
{
if($this->b_connected){
return($this->c_memcache->getStats());
}else{
{
if($this->b_connected){
return($this->c_memcache->getStats());
}else{
- return(FALSE);
+ return("");
}
}
}
}
}
}