From a59ca7fbd42c2a0c0746e51f917b8e50c93f1978 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jure=20=C5=A0orn?= Date: Mon, 28 Jan 2019 19:22:18 +0100 Subject: [PATCH] Lru --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 6b4d828..eafb872 100644 --- a/README.md +++ b/README.md @@ -624,6 +624,8 @@ def add(x, y): ### LRU Cache **Decorator that caches function's return values. All arguments must be hashable.** ```python +from functools import lru_cache + @lru_cache(maxsize=None) def fib(n): if n < 2: