This bit of code will tell you what is in memcache.  Because it is based on
a Quantum Algorithm reading the results changes the results.  This means
that the results are only accurate AFTER this code executes, not before.

 

 

class BrandonsQuantumMemcacheReader(webapp.RequestHandler):

  def get(self):

    self.response.headers['content-type'] = 'text/plain'

    self.response.out.write('Memcache is Empty: %s' % memcache.flush_all())

 

(This code does what I said it does, and teaches a very important lesson in
working with memcache. The only way to trust what is in Memcache is to empty
memcache so you know exactly what is in it)

 

 

 

From: [email protected]
[mailto:[email protected]] On Behalf Of Nick Johnson
Sent: Tuesday, November 22, 2011 4:30 PM
To: [email protected]
Subject: Re: [google-appengine] List of Memcache Items

 

No, there's no API for this. If you're trying to track all memcache keys,
you're probably Doing It Wrong.

 

-Nick Johnson

On Wed, Nov 23, 2011 at 3:44 AM, James Gilliam <[email protected]> wrote:

Any way to get a list of the memcache keys without having to track
them yourself?

Thanks you

--
You received this message because you are subscribed to the Google Groups
"Google App Engine" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected]
<mailto:google-appengine%[email protected]> .
For more options, visit this group at
http://groups.google.com/group/google-appengine?hl=en.





 

-- 
Nick Johnson, Developer Programs Engineer, App Engine



-- 
You received this message because you are subscribed to the Google Groups
"Google App Engine" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-appengine?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.

Reply via email to