Commit 442c6691 authored by Raymond Hettinger's avatar Raymond Hettinger

Doc and docstring nits.

parent 027140e6
......@@ -91,6 +91,10 @@ The :mod:`functools` module defines the following functions:
.. versionadded:: 3.2
.. seealso::
Recipe for a `plain cache without the LRU feature
<http://code.activestate.com/recipes/577479-simple-caching-decorator/>`_.
.. decorator:: total_ordering
......
......@@ -121,9 +121,9 @@ def lru_cache(maxsize=100):
Arguments to the cached function must be hashable.
View the cache statistics named tuple (maxsize, size, hits, misses) with
View the cache statistics named tuple (hits, misses, maxsize, currsize) with
f.cache_info(). Clear the cache and statistics with f.cache_clear().
And access the underlying function with f.__wrapped__.
Access the underlying function with f.__wrapped__.
See: http://en.wikipedia.org/wiki/Cache_algorithms#Least_Recently_Used
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment