I find myself using cachetools and async code more and more, and had to write my own fork of cachetool to get the behavior I need in my project ( see https://github.com/tkem/cachetools/pull/234 )
As pointed out, asyncache works great with cachetools, which I'd like to use instead of my own fork. One functionality that we rely on however is cachetool's @cachedmethod decorator (essentially, grabbing the cache instance from the decorated method's class instead of a global cache).
Would a PR adding a @cachedmethod decorator be welcome? Plus tests, obviously. If it would, I am happy to work on it (most of the code already exists on my drive).
I find myself using cachetools and async code more and more, and had to write my own fork of cachetool to get the behavior I need in my project ( see https://github.com/tkem/cachetools/pull/234 )
As pointed out, asyncache works great with cachetools, which I'd like to use instead of my own fork. One functionality that we rely on however is cachetool's @cachedmethod decorator (essentially, grabbing the cache instance from the decorated method's class instead of a global cache).
Would a PR adding a @cachedmethod decorator be welcome? Plus tests, obviously. If it would, I am happy to work on it (most of the code already exists on my drive).
Thanks in any case!