[ZODB-Dev] Programaticallly managing the cache in stand alone ZODB

Dieter Maurer dieter at handshake.de
Tue Jan 25 13:52:50 EST 2005


Chris Cioffi wrote at 2005-1-25 11:59 -0500:
> ...
>Is there a way to programmatically say "flush the cache, I don't need
>anything currently there?"

When you have a persistent object "o", then "o._p_jar" is its
connection (or "None", when it is not yet stored).

For a connection "c", "c.cacheMinimize()" flushes all objects
from "c"s cache that can be flushed.

-- 
Dieter


More information about the ZODB-Dev mailing list