Created
June 18, 2016 01:29
-
-
Save jvanasco/0e420571ac66a0e80de988ed23c9ae40 to your computer and use it in GitHub Desktop.
cache with temporary values.
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
@task | |
def get_ExpensiveCalculator_foo(): | |
expensive_foo = app_shared.ExpensiveCalculator().expensive_foo() | |
app_pyramid.CheapCalculator().set_foo(expensive_foo) |
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
usable_value = app_shared.CheapCalculator().get_foo() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment