chore: キャッシュでgroupを指定しない場合はdefaultに入れるように

pull/20/head
yupix 2 years ago
parent bf0558cfbf
commit 2657c25745
No known key found for this signature in database
GPG Key ID: 2FF705F5C56D9C06

@ -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)

Loading…
Cancel
Save