This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author frafra
Recipients frafra
Date 2013-03-23.10:59:41
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1364036381.48.0.635559042513.issue17528@psf.upfronthosting.co.za>
In-reply-to
Content
Hi,
I propose to change the public API of functools.lru_cache in order to make the cache persistent when the program is restarted.
It could be implemented using two different functions (dumps/loads), where the cached is exported into a classical dictionary and restored in the same way.
A third argument could be also added to provide the initial cache (calling the loads function internally after the initialization).

I think this could be an important enhancement because lru_cache will probably implemented in C and try to export cache contents it will be not possible (see: http://bugs.python.org/issue14373).
History
Date User Action Args
2013-03-23 10:59:41frafrasetrecipients: + frafra
2013-03-23 10:59:41frafrasetmessageid: <1364036381.48.0.635559042513.issue17528@psf.upfronthosting.co.za>
2013-03-23 10:59:41frafralinkissue17528 messages
2013-03-23 10:59:41frafracreate