Skip to content

Commit

Permalink
Update decorators.py
Browse files Browse the repository at this point in the history
key_builder now receives wrapped function as first argument
  • Loading branch information
Aljosha Friemann authored Apr 26, 2018
1 parent f97f90f commit 10b4eec
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 @@ -87,7 +87,7 @@ def get_cache_key(self, f, args, kwargs):
if self.key:
return self.key
if self.key_builder:
return self.key_builder(*args, **kwargs)
return self.key_builder(f, *args, **kwargs)

return self._key_from_args(f, args, kwargs)

Expand Down

0 comments on commit 10b4eec

Please sign in to comment.