This looks cool. I'm still getting familiar with appengine (started
looking at it two days ago.)
This small app shows how to use memcache and datastore.
I just read the whole code.
In IncrPageCount(),
if memcache.get(memcache_id) == None:
# initializes memcache if missing
return GetPageCount(pagename)
However, in GetPageCount()
val = memcache.get(memcache_id)
if (val != None):
return val
Obvious redundancy. That's interesting. I guess it's to check if the
page has been updated between calls?
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---