On Sat, 2008-10-25 at 14:43 +0200, Andreas Jung wrote: > On 25.10.2008 14:37 Uhr, Christian Theune wrote: > > Hi, > > > > On Fri, 2008-10-24 at 15:41 +0200, Hedley Roos wrote: > >> The product is a monkey patch to Catalog.py. I'd love some feedback and > >> suggestions. > > > > I'd love if this wouldn't be a monkey patch. > > > > Also, there is nothing that makes this integrate correctly with > > transactions. Your cache will happily deliver never-committed data and > > also it will not isolate transactions from each other. > > The problem with memcached is that memcached isn't transactional. We > managed to solve this problem by implementing a cache tool (for CMF) > where where the set/get methods for the memcached participate in the > Zope transaction using a DataManager. I can provide the code if someone > should be interested.
In addition, you need to include a serial in your cache keys to avoid dirty reads. -- Christian Theune · [EMAIL PROTECTED] gocept gmbh & co. kg · forsterstraße 29 · 06112 halle (saale) · germany http://gocept.com · tel +49 345 1229889 7 · fax +49 345 1229889 1 Zope and Plone consulting and development
signature.asc
Description: This is a digitally signed message part
_______________________________________________ Zope-Dev maillist - [email protected] http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
