Skip to content

Commit a59ca7f

Browse files
committed
Lru
1 parent 1cbb59b commit a59ca7f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -624,6 +624,8 @@ def add(x, y):
624624
### LRU Cache
625625
**Decorator that caches function's return values. All arguments must be hashable.**
626626
```python
627+
from functools import lru_cache
628+
627629
@lru_cache(maxsize=None)
628630
def fib(n):
629631
if n < 2:

0 commit comments

Comments
 (0)