title: How to use Flask-Cache with Flask-Restful
body: <p>How do I use Flask-Cache @cache.cached() decorator with Flask-Restful? For example, I have a class Foo inherited from Resource, and Foo has get, post, put, and delete methods. </p>
  
  <p>How can I can invalidate cached results after a <code>POST</code>?</p>
  
  <pre><code>@api.resource('/whatever')
  class Foo(Resource):
      @cache.cached(timeout=10)
      def get(self):
          return expensive_db_operation()
  
      def post(self):
          update_db_here()
  
          ## How do I invalidate the value cached in get()?
          return something_useful()
  </code></pre>