-
Notifications
You must be signed in to change notification settings - Fork 131
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add ability to cache injectable results on inputs
If you have a utility function registered as an injectable but it is not being automatically called you can now get caching of results based on the inputs so long as the inputs are all hashable. Use the memoize=True keyword along with autocall=False to get this behavior. Note that this only applies if you're using the utility via the simulation framework (via injection or get_injectable).
- Loading branch information
Showing
2 changed files
with
139 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters