[Zope-dev] Re: created z3c.saconfig
Martijn Faassen
faassen at startifact.com
Fri Jun 20 08:01:52 EDT 2008
Hi there,
Brian Sutherland wrote:
[snip]
> Also for this problem:
>
> # XXX what happens if EngineFactory were to be evicted from the ZODB
> # cache?
> def getCached(self):
> return getattr(self, '_v_engine', None)
>
> I think you could use the same mechanism found in zope.app.cache.ram.
> I.e. store the engines in a module level global dictionary. Then use
> some clever way (with a counter and time) to figure out a unique key for
> your local utility (and persistently store the key).
Ah, thanks for that tip. Does zope.app.cache.ram deal with threading
issues? Ah, yes, I see it uses a lock. Anyway, a patch would be welcome. :)
Regards,
Martijn
More information about the Zope-Dev
mailing list