• Jim Fulton's avatar
    Added cache management methods so that apps that want to move objects · e3c65066
    Jim Fulton authored
    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.
    e3c65066
Connection.py 16.2 KB