[Zope-Checkins] CVS: Zope2 - Connection.py:1.25
Jim Fulton
jim@korak.digicool.com
Wed, 15 Sep 1999 12:10:34 -0400
Update of /cvs-repository/Zope2/lib/python/ZODB
In directory korak.digicool.com:/projects/users/jim/lib/python/ZODB
Modified Files:
Connection.py
Log Message:
Added cache management methods so that apps that want to move objects
out of memory can force aggressive cache behavior:
cacheGC() -- do an incremental GC
cacheFullSweep([dt]) -- Make a pass through objects in the cache
removing unreferenced objects and, if dt > 0, deactivating
objects accessed more than dt seconds ago.
cacheMinimize([dt]) -- Make multiple passes through objects in the cache
removing unreferenced objects and, if dt > 0, deactivating
objects accessed more than dt seconds ago. Keep making passes
until the cache size doesn;t change.