Python3 pass lists to function with functools.lru_cache : <p>I want to cache a function that takes a list as a parameter, but when I try to do so with the <a href="https://docs.python.org/3/library/functools.html#functools.lru_cache" rel="noreferrer"><code>functools.lru_cache</code></a> decorator, it fails with <code>TypeError: unhashable type: 'list'</code>.</p>

<pre><code>
import functools

@functools.lru_cache()
def example_func(lst):
    return sum(lst) + max(lst) + min(lst)


print(example_func([1, 2]))
</code></pre>
