I am using the code found here.

http://code.google.com/appengine/articles/sharding_counters.html

Upon using this I noticed that it would return an int the first time and a
str the second. Appears to be the way the value is being stored in memcache.
I change the line below and works as expected now.

    # memcache.add(name, str(total), 60)
    memcache.add(name, total, 60)

Am I missing something here? Is there a reason str(total) would be preferred
over total?

--~--~---------~--~----~------------~-------~--~----~
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