#NEWLINE# @ login_required #NEWLINE# def get( self ) : #NEWLINE# #INDENT# from google.appengine.api import memcache #NEWLINE# from google.appengine.api import users #NEWLINE# if users . is_current_user_admin ( ) : #NEWLINE# #INDENT# stats = memcache . get_stats ( ) #NEWLINE# memcache . flush_all ( ) #NEWLINE# self . response . out . write ( 'Memcache successfully flushed!<br/>' ) #NEWLINE# if stats : #NEWLINE# #INDENT# self . response . out . write ( '<p>Memcache stats:</p><p>' ) #NEWLINE# for key in stats . keys ( ) : #NEWLINE# #INDENT# self . response . out . write ( ( '%s: %s<br/>' % ( key , stats [ key ] ) ) ) #NEWLINE# #UNINDENT# self . response . out . write ( '</p>' )