]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix Wikipedia link (GH-20031)
authorAllen Guo <guoguo12@gmail.com>
Tue, 12 May 2020 22:54:18 +0000 (18:54 -0400)
committerGitHub <noreply@github.com>
Tue, 12 May 2020 22:54:18 +0000 (19:54 -0300)
Doc/library/functools.rst

index 204e66ae5ac407da3c91007e2fbc8608ae1d3179..a44eb85b27dbab6712f6dc4199a76625426f1290 100644 (file)
@@ -158,11 +158,11 @@ The :mod:`functools` module defines the following functions:
    bypassing the cache, or for rewrapping the function with a different cache.
 
    An `LRU (least recently used) cache
-   <https://en.wikipedia.org/wiki/Cache_algorithms#Examples>`_ works
-   best when the most recent calls are the best predictors of upcoming calls (for
-   example, the most popular articles on a news server tend to change each day).
-   The cache's size limit assures that the cache does not grow without bound on
-   long-running processes such as web servers.
+   <https://en.wikipedia.org/wiki/Cache_replacement_policies#Least_recently_used_(LRU)>`_
+   works best when the most recent calls are the best predictors of upcoming
+   calls (for example, the most popular articles on a news server tend to
+   change each day).  The cache's size limit assures that the cache does not
+   grow without bound on long-running processes such as web servers.
 
    In general, the LRU cache should only be used when you want to reuse
    previously computed values.  Accordingly, it doesn't make sense to cache