From 2657c25745831619cee9c748e8b6c394407f753e Mon Sep 17 00:00:00 2001 From: yupix Date: Mon, 31 Oct 2022 22:34:07 +0900 Subject: [PATCH] =?UTF-8?q?chore:=20=E3=82=AD=E3=83=A3=E3=83=83=E3=82=B7?= =?UTF-8?q?=E3=83=A5=E3=81=A7group=E3=82=92=E6=8C=87=E5=AE=9A=E3=81=97?= =?UTF-8?q?=E3=81=AA=E3=81=84=E5=A0=B4=E5=90=88=E3=81=AFdefault=E3=81=AB?= =?UTF-8?q?=E5=85=A5=E3=82=8C=E3=82=8B=E3=82=88=E3=81=86=E3=81=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mipac/util.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mipac/util.py b/mipac/util.py index 283e27c..518d3f3 100644 --- a/mipac/util.py +++ b/mipac/util.py @@ -207,7 +207,7 @@ def get_cache(group: str, key: str): @dynamic_args -def cache(func, group: Optional[str] = None, override: bool = False): +def cache(func, group: str = 'default', override: bool = False): async def decorator(self, *args, **kwargs): ordered_kwargs = sorted(kwargs.items()) key = '.{0}' + str(args) + str(ordered_kwargs)