How do I use cache_clear() on python @functools.lru_cache
<p><a href="https://docs.python.org/3/library/functools.html" rel="noreferrer">The documentation</a> states:</p>

<blockquote>
  <p>The decorator also provides a <code>cache_clear()</code> function for clearing or
  invalidating the cache.</p>
</blockquote>

<p>It doesn't provide any examples or guidance on how to use <code>cache_clear()</code></p>

<p>I have two questions:</p>

<ul>
<li>How can I run <code>cache_clear()</code> from a different function?</li>
<li>If I put a <code>cache_clear()</code> call conditionally inside the function that is being cached, will it ever get executed?</li>
</ul>