[New-bugs-announce] [issue30153] lru_cache should support invalidations

Jesús Cea Avión report at bugs.python.org
Mon Apr 24 06:29:30 EDT 2017


New submission from Jesús Cea Avión:

I think that "functools.lru_cache()" should have the ability to "invalidate" a (possibly cached) value. Something like:

@functools.lru_cache()
def func(param):
  ...

func.invalidate(PARAM) # discard this cached call, or ignore if not cached

----------
messages: 292216
nosy: jcea
priority: normal
severity: normal
stage: needs patch
status: open
title: lru_cache should support invalidations
type: enhancement
versions: Python 3.7

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


More information about the New-bugs-announce mailing list