Skip to content

Commit

Permalink
'Solution'
Browse files Browse the repository at this point in the history
  • Loading branch information
BlackYOSHl committed Nov 30, 2024
1 parent 16ed7b8 commit 160f78c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@


def cache(func: Callable) -> Callable:
"""
A decorator that caches the results of function
calls with immutable arguments.
"""
cache_store: Dict[Tuple, Any] = {}

def wrapper(*args) -> Any:
Expand Down

0 comments on commit 160f78c

Please sign in to comment.