Skip to content

Commit

Permalink
chore: 使用していなかったget_cache_key関数を削除
Browse files Browse the repository at this point in the history
  • Loading branch information
yupix committed Feb 24, 2024
1 parent ca30721 commit 87ea957
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions mipac/utils/cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,6 @@ async def wrapper(self, *args, **kwargs):
return decorator


def get_cache_key(func):
async def decorator(self, *args, **kwargs):
key = cache_key_builder(func, self, *args, **kwargs)
return await func(self, *args, **kwargs, cache_key=key)

return decorator


@lru_cache
def cache_key_builder(func, cls, *args, **kwargs):
ordered_kwargs = sorted(kwargs.items())
Expand Down

0 comments on commit 87ea957

Please sign in to comment.