define("BX_CACHE_TYPE", "memcache"); define("BX_MEMCACHE_HOST", "127.0.0.1");
$Memcached = new Memcached; $Memcached->addServer("127.0.0.1", 11211); if ($Memcached->get("key")){ echo $Memcached->get("key"); }else{ $Memcached->set("key", time(), 30); echo "set"; }