[Zope] API for Zope cacheing

Felix Ulrich-Oltean felix@chaptereight.com
16 Dec 2002 17:22:22 +0000


Is there an API for using Zope's cacheing machinery from python
products?

Specifically, I have a subclass of SimpleUserFolder which calls 20+ SQL 
statements every time it's called just to work out the user's details -
this is all very cacheable and I can see that Zope provides various
caches - there are some useful-looking methods in RAMCacheManager.py,
but I was wondering if there is a 'known' way to do it.

Thanks,

Felix.