title: Delete specific cache in Flask-Cache or Flask-Caching
body: <p>I am using Flask cache in my API in python.</p>
  
  <p>Currently I am using the decorator <code>@app.cache.memoize(cache_memoize_value)</code> and I flush it by calling <code>app.cache.delete_memoized(view)</code></p>
  
  <p>The problem is that with <code>memoize</code> it will be cached for <code>n</code> views and not for a specific amount of time. If I want to specify a timeout for the cache I need to use the decorator <code>@app.cache.cached(timeout=300)</code> and clear it with <code>app.cache.clear()</code>. However, this clear method will clear everything and not only a specific view.</p>
  
  <p>How can I only clear a specific view while using the cached decorator?</p>