Created
June 18, 2016 01:29
-
-
Save jvanasco/f80f578c8632d489b721b2a254ee358e to your computer and use it in GitHub Desktop.
cache with temporary values.
This file contains hidden or 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 hidden or 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