View Single Post
Old Mar 18th, 2007, 6:21 PM   #5
Arevos
Programming Guru
 
Arevos's Avatar
 
Join Date: Aug 2005
Location: England
Posts: 1,499
Rep Power: 5 Arevos is on a distinguished road
Quote:
Originally Posted by Sane View Post
@Arevos : That all seems pretty straight forward. But how do I get the memory back when it's attempted to be referenced again? Maybe I don't see how this works.
Well, if I'm understanding right, then you have a series of objects containing data. You could pickle those objects to a file, using something like the shelve module, and keep them in a time-limited cache whenever they're accessed. In order to access the objects, one must always go through the cache.
Arevos is offline   Reply With Quote