Re: [Zope3-dev] (zope/app/cache/ram.py) class Storage's cleanup problem.

2005-12-30 Thread Simon Hang
Hi Stephan, Is these code all right? Regards, SimonOn 11/13/05, Simon Hang [EMAIL PROTECTED] wrote: Thanks Stephan, Here is the test:(test_ramcache.py) class TestStorage(TestCase): def test_getEntry(self): --snipped-- def test_getEntry_do_cleanup(self): from zope.app.cache.ram import

Re: [Zope3-dev] (zope/app/cache/ram.py) class Storage's cleanup problem.

2005-11-12 Thread Stephan Richter
On Tuesday 01 November 2005 05:10, Simon Hang wrote: Dear all, I'm happen to find out call Storage only do cleanup when new Entry comes and do nothing when entries get from storage. So entries will be next expired if there are only read activities. I agree with your analysis and solution. If

Re: [Zope3-dev] (zope/app/cache/ram.py) class Storage's cleanup problem.

2005-11-12 Thread Simon Hang
Thanks Stephan, Here is the test:(test_ramcache.py) class TestStorage(TestCase): def test_getEntry(self): --snipped-- def test_getEntry_do_cleanup(self): from zope.app.cache.ram import Storage s = Storage(cleanupInterval=300, maxAge=300) object = 'object' key = ('view', (), ('answer',