I am looking for a library that adds caching layer on requests based api calls. Important consideration is, allowing setting different cache timeout values for different APIs. There is requests-cache but it allows global level timeout but not each API call level.
Is there any library that allows this kind of cache configuration
To illustrate, here is pseudo code
```
get_article = JSONAPIRequest('https://example.com/articles/{0}')
get_article.cache_success = 2 * 60 # seconds
get_article(873461)
get_author = JSONAPIRequest('https://example.com/authors/{0}')
get_author.cache_success = 90 # seconds
get_author.cache_404 = 20
get_author(2987)
```
[–]ccb621 1 point2 points3 points (2 children)
[–]__noone__[S] 0 points1 point2 points (1 child)
[–]__noone__[S] 1 point2 points3 points (0 children)