[issue30153] lru_cache should support invalidations
Steven D'Aprano
report at bugs.python.org
Mon Apr 24 08:06:57 EDT 2017
Steven D'Aprano added the comment:
Perhaps the existing ``cache_clear`` method could take optional arguments?
def cache_clear(self, *args, **kw):
if not (args or kw):
# clear the entire cache
else:
# clear just the cache entry for *args, **kw
----------
components: +Library (Lib)
nosy: +rhettinger, steven.daprano
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue30153>
_______________________________________
More information about the Python-bugs-list
mailing list