Exemple #1
0
 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")
Exemple #2
0
 def get(self):
     s = memcache.get_stats()
     MemcacheStatus.new(s['hits'],s['misses'],s['items'],s['bytes'])
     print "aaa"