Skip to content

Commit

Permalink
Decorator @cached creates cache with the Cache() factory (#568)
Browse files Browse the repository at this point in the history
  • Loading branch information
padraic-shafer authored Dec 30, 2022
1 parent e64ff89 commit 781af66
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion aiocache/decorators.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ async def decorator(self, f, *args, **kwargs):


def _get_cache(cache=Cache.MEMORY, serializer=None, plugins=None, **cache_kwargs):
return cache(serializer=serializer, plugins=plugins, **cache_kwargs)
return Cache(cache, serializer=serializer, plugins=plugins, **cache_kwargs)


def _get_args_dict(func, args, kwargs):
Expand Down

0 comments on commit 781af66

Please sign in to comment.