$memcache = new Memcache; //initialised memcahe
@$memcache->connect("127.0.0.1",11211); // connect memcahe server
$cache = getCache(md5("mysql_query" . $sql));
//get sql query if already cached in memcahe
$memcache = new Memcache; //initialised memcahe
@$memcache->connect("127.0.0.1",11211); // connect memcahe server
$cache = getCache(md5("mysql_query" . $sql));
//get sql query if already cached in memcahe