[New-bugs-announce] [issue17528] Implement dumps/loads for lru_cache

Francesco Frassinelli report at bugs.python.org
Sat Mar 23 11:59:41 CET 2013


New submission from Francesco Frassinelli:

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).

----------
messages: 185036
nosy: frafra
priority: normal
severity: normal
status: open
title: Implement dumps/loads for lru_cache
type: enhancement

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue17528>
_______________________________________


More information about the New-bugs-announce mailing list