title: Caching strategy for Web API
body: <p>I am developing a small blog application using the following technologies:</p>
  
  <ol>
  <li>ASP.NET Web API for the back-end.</li>
  <li>HTML, CSS and JavaScript (KnockoutJS specifically)</li>
  </ol>
  
  <p>Internally i use the <a href="https://msdn.microsoft.com/en-us/library/system.runtime.caching.memorycache(v=vs.110).aspx" rel="nofollow noreferrer">MemoryCache</a> class. Let's say i want to give the users the ability to add/edit/remove blog posts. Is it a good practise to save a JSON containing all blog posts from the database to the cache? In a real-world scenario there will be a significant amout of posts so the serialization/deserialization of cache may become an expensive operation. Also what is the best way to support pagination for these items? Thank you in advance for your help.</p>