title: How do I use beaker caching in Pyramid?
body: <p>I have the following in my <code>ini</code> file:</p>
  
  <pre><code>cache.regions = default_term, second, short_term, long_term
  cache.type = memory
  cache.second.expire = 1
  cache.short_term.expire = 60
  cache.default_term.expire = 300
  cache.long_term.expire = 3600
  </code></pre>
  
  <p>And this in my <code>__init__.py</code>:</p>
  
  <pre><code>from pyramid_beaker import set_cache_regions_from_settings
  set_cache_regions_from_settings(settings)
  </code></pre>
  
  <p>However, I'm not sure how to perform the actual caching in my views/handlers. Is there a decorator available? I figured there would be something in the <code>response</code> API but only <code>cache_control</code> is available - which instructs the user to cache the data. Not cache it server-side.</p>
  
  <p>Any ideas?</p>