Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

multi_cached more flexible #21

Closed
argaen opened this issue Oct 18, 2016 · 1 comment
Closed

multi_cached more flexible #21

argaen opened this issue Oct 18, 2016 · 1 comment

Comments

@argaen
Copy link
Member

argaen commented Oct 18, 2016

Right now it only works with functions returning dicts and knows the keys if a param called keys is passed. Some modifications to improve its flexibility:

  • Param to the decorator to choose which param is receiving the keys.
  • Check how to make it work when returning pairs.
  • also cached decorator can be modified to support which attribute wants to be used as a key.
@argaen
Copy link
Member Author

argaen commented Oct 20, 2016

357214f

@argaen argaen closed this as completed Oct 20, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant