如题,求解!!! $mem=new Memcache;
     
if(!$mem->connect("127.0.0.1",11211)){
die('连接失败!');
}
if($mem->set('key1',"beijing",MEMCACHE_COMPRESSED,60)){
echo '添加ok';
}   显示连接失败!
php.ini配置也加以下了:
extension_dir = "****"
extension = "memcache.so"
phpinfo();显示以下Directive Local Value Master Value 
memcache.allow_failover 1 1 
memcache.chunk_size 32768 32768 
memcache.compress_threshold 20000 20000 
memcache.default_port 11211 11211 
memcache.hash_function crc32 crc32 
memcache.hash_strategy consistent consistent 
memcache.lock_timeout 15 15 
memcache.max_failover_attempts 20 20 
memcache.protocol ascii ascii 
memcache.redundancy 1 1 
memcache.session_redundancy 2 2