connect('localhost', 11211); $mId = 'counter-'.$key; if($memcache->get($mId)) $memcache->increment($mId, 1); else $memcache->set($mId, 1); $o = new App(); $page = $o->renderData($key); echo $page; ?>