aio-libs / aio-libs/aiocache

Create Multiple caches

オープン
#775 コメント 3 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
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 はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。