hephex / asyncache

Helpers to use cachetools with async functions
MIT License
90 stars 12 forks source link

Getting cache from decorated function #16

Open larsblumberg opened 1 year ago

larsblumberg commented 1 year ago

In cachetools we can get the cache from a @cached decorated function, i.e. in order to clear the cache:

@cached
def some_func():
    pass

some_func.cache.clear()

@cached of asyncache doesn't yet seem to expose the cache or am I overlooking something?

arossert commented 1 year ago

I also noticed the same thing, are there any plans to add this?