I'm trying to use memcache and it seems to be working on my dev
server. I'm caching three thing and only two of them stay cached. Here
is my code. mcount is the one thats not working.
#this works
wbcount = memcache.get("wbcount")
if wbcount is None:
debug("Caching wbcount")
wbcount = 0
memcache.add(key="wbcount", value=wbcount, time=60 * 60)
v["wbcount"] = wbcount
#this does not
mcount = memcache.get("mcount")
if mcount is None:
debug("Caching mcount") # I keep seeing this in the logs!!!!!
<<<
mcount = museum.all().count()
memcache.add(key="mcount", value=mcount, time=60 * 60)
v["mcount"] = mcount
#this works
ucount = memcache.get("ucount")
if ucount is None:
debug("Caching ucount")
ucount = ruser.all().count()
memcache.add(key="ucount", value=ucount, time=60 * 60)
v["ucount"] = ucount
Am I doing anything wrong?
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---