Create Multiple caches
オープン
- 主要言語
- Python
- スター
- 1.4k
- フォーク
- 181
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
In cachetools, we can create multiple cache instance like below
```python
from cachetools import TTLCache, cached
A_cache = TTLCache(maxsize=100, ttl=60)
B_cache = TTLCache(maxsize=100, ttl=60)
@cached(cache=A_cache)
def a():
# some code
@cached(cache=B_cache)
def b():
# some code
A_cache.clear()
B_cache.clear()
```
I couldn't find a way to replicate the above code using aiocache?
コントリビューションガイド
評価
この issue はまだ評価されていません。