<?php
 
 
include_once('mem.class.php')  ;
 
 
$_MEM['dd'] = "roast";
 
unset($_MEM['dd']);               //delete a memcache value
 
var_dump($_MEM['dd']);            
 
 
echo $_MEM->_host;  
 
$_MEM['_host'] = '192.168.1.1';   //set the memcache server host
 
echo $_MEM->_host;
 
 
$_MEM['roast'] = 'ÕÅÁ¢±ù';  
 
$memcache = new Memcache;
 
$memcache->connect('10.210.71.51', 11211) or die ("Could not connect");
 
var_dump($memcache->get('roast'));
 
?>
 
 
 |