title: How to cache the action in asp.net mvc on the basis of viewdata ? c#
body: <p>I am passing the viewdata from base controller. Every controller is inherited from that controller class.</p>
  
  <p>viewdata["currentuser"] is different for every kind of user.</p>
  
  <p>How I can cached it differently for every different value of currentuser in viewdata.</p>
  
  <p>Someone show me code through the ACtionfilter.</p>
  
  <p>What I have tried ?</p>
  
  <ol>
  <li><p>I tried to add the cache through the this.httpcontext but it didn't return the viewdata back to me when I do this inside the controller action.</p></li>
  <li><p>I still stuck with the code that I can put on filter to cache the stuff.</p></li>
  </ol>