What's the best pattern for using transactions together with
memcache.delete?
def txn():
... get, put some entities
Option 1: do memcache.delete here
db.run_in_transaction(txn)
Option 2: do memcache.delete here
Option 1 is to run do it in the last line(s) of the txn() function.
Option 2 is to do it right after the successful call to
run_in_transaction(). Option 2 feels a bit more correct, but Option 1
is convenient because I have easy access to the various model
properties there.
Are both options OK, or do that have different behavior that could
cause problems?
Thanks,
Jesse
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---