Message185036
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). |
|
Date |
User |
Action |
Args |
2013-03-23 10:59:41 | frafra | set | recipients:
+ frafra |
2013-03-23 10:59:41 | frafra | set | messageid: <1364036381.48.0.635559042513.issue17528@psf.upfronthosting.co.za> |
2013-03-23 10:59:41 | frafra | link | issue17528 messages |
2013-03-23 10:59:41 | frafra | create | |
|