Re: [Zope] Asking recipe for caching objects

2008-08-01 Thread Andreas Jung
--On 1. August 2008 15:55:41 +0200 Marco Bizzarri [EMAIL PROTECTED] wrote: Hi all. I have a zope application which uses a db (postgreSQL) to store and retrieve data. I would like to cache it. It is ok for me to cache them on thread-base. Up to now I've used a simple _v_ attribute, with a

Re: [Zope] Asking recipe for caching objects

2008-08-01 Thread Marco Bizzarri
Thanks for your suggestions, Andreas. Any chance these are going to work under Zope 2.8? Regards Marco On Fri, Aug 1, 2008 at 4:04 PM, Andreas Jung [EMAIL PROTECTED] wrote: --On 1. August 2008 15:55:41 +0200 Marco Bizzarri [EMAIL PROTECTED] wrote: Hi all. I have a zope application which

Re: [Zope] Asking recipe for caching objects

2008-08-01 Thread Peter Bengtsson
My ZSQL product has a very simple feature for hooking up up to memcache but with one caveat: that you can't invalidate the cache. It only works for selects of course but it's really easy to work with. E.g. SQLSelectAverageUserAge(min=10, max=20, memcache__=True) (defaults to 5*60 seconds)