memcache.incr() is supposed to increment a key transactionally, so
that two clients can't clobber each other ... but can the application
expect to be connected to ever be connected to more than one memcache
server that each have different values? (it is expected that is
possible that it will be connected to zero memcache servers).
Also, how does expiration interact with incr()? There isn't a time
flag for incr(), but what happens if I add the key with another call
rather than using the initial_value flag, like so:
memcache.add('rlcnt-%s-%s' % (op, ip_h), 0, time=60*90)
newcnt = memcache.incr('rlcnt-%s-%s' % (op, ip_h))
--
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.