Add MRU documentation.
diff --git a/docs/index.rst b/docs/index.rst
index e27c9bc..8728c83 100644
--- a/docs/index.rst
+++ b/docs/index.rst
@@ -81,6 +81,12 @@
This class discards the least recently used items first to make
space when necessary.
+.. autoclass:: MRUCache(maxsize, getsizeof=None)
+ :members:
+
+ This class discards the most recently used items first to make
+ space when necessary.
+
.. autoclass:: RRCache(maxsize, choice=random.choice, getsizeof=None)
:members:
@@ -465,6 +471,13 @@
saves up to `maxsize` results based on a Least Recently Used (LRU)
algorithm.
+.. decorator:: mru_cache(user_function)
+ mru_cache(maxsize=128, typed=False)
+
+ Decorator that wraps a function with a memoizing callable that
+ saves up to `maxsize` results based on a Most Recently Used (MRU)
+ algorithm.
+
.. decorator:: rr_cache(user_function)
rr_cache(maxsize=128, choice=random.choice, typed=False)