Skip to content

Commit

Permalink
Solution cache decorator
Browse files Browse the repository at this point in the history
  • Loading branch information
frezworx committed Sep 27, 2023
1 parent c7af899 commit 73be915
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ def wrapper_cache(*args) -> Any:
if key not in memory:
memory[key] = func(*args)
print("Calculating new result")

return memory[key]
else:
print("Getting from cache")
Expand Down

0 comments on commit 73be915

Please sign in to comment.