Python-LRU-cache icon indicating copy to clipboard operation
Python-LRU-cache copied to clipboard

cache argument to lru_cache_function isn't supported

Open Kylotan opened this issue 9 years ago • 0 comments

If you try this code from the docs:

d = LRUCacheDict(max_size=3, expiration=3, thread_clear=True)

@lru_cache_function(cache=d)
def f(x):
    return x/2

You'll get this error: TypeError: lru_cache_function() got an unexpected keyword argument 'cache'

Kylotan avatar Apr 11 '16 22:04 Kylotan