def get(self): mems = MemcacheStatus.get_recent_24() self.template_value['mem'] = memcache.get_stats() self.template_value['rates']=','.join([str(obj.hits*100.0/(obj.hits+obj.misses))for obj in mems[::-1] ]) self.render("mem.html")
def get(self): s = memcache.get_stats() MemcacheStatus.new(s['hits'],s['misses'],s['items'],s['bytes']) print "aaa"