SilverlightShow: Caching of, in, and around your Silverlight application (part 3) Comments http://www.silverlightshow.net/ Silverlight articles, Silverlight tutorials, Silverlight videos, Silverlight samples SilverlightShow.net http://www.rssboard.org/rss-specification Argotic Syndication Framework 2008.0.2.0, http://www.codeplex.com/Argotic en-US estoychev@completit.com (Emil Stoychev) Re: Caching of, in, and around your Silverlight application (part 3) <p>Thanks so much!  I'll look into OutputCache.</p> http://www.silverlightshow.net/items/Caching-of-in-and-around-your-Silverlight-application.aspx#comment7295 jsneeringer http://www.silverlightshow.net/items/Caching-of-in-and-around-your-Silverlight-application.aspx Thu, 08 Dec 2011 16:49:49 GMT Re: Caching of, in, and around your Silverlight application (part 3) <p>Hello jsneeringer,</p> <p>interesting problem :-)  You might want to look into WCF RIA Services for this, as this is supported by that framework through the OutputCache attribute: this allows you to specify the location of the cache.  If you set this to "client", the server-side method will not be hit the second time you call it.  </p> <p>There's one issue with this though: OutputCache is disabled for queries that specify additional LINQ queries to the EntityQuery - so you cannot use this when you're extending the query from the client (you can, however, use this with additional parameters on your service method).  </p> <p>As far as caching algoritms like LRU are concerned, I'm not aware of any implementations of this out-of-the-box in SL, so that'll require some work...</p> http://www.silverlightshow.net/items/Caching-of-in-and-around-your-Silverlight-application.aspx#comment7294 KevinDockx http://www.silverlightshow.net/items/Caching-of-in-and-around-your-Silverlight-application.aspx Thu, 08 Dec 2011 11:50:00 GMT Re: Caching of, in, and around your Silverlight application (part 3) <p>Thanks Kevin.  Great articles. I've been looking for something like this.</p> <p>A question:  Is there a way to cache result sets on the client side without caching all of them?  A DataPager makes a good example.  If there is a lot of data in the table on the server, the DataPager will fetch only what it needs to display, right?  There might not be room client-side to store all the data, but if the user goes back and forth among the pages, it would be better not to go back to the server each time.  Therefore it would be nice to cache a few items with an LRU algorithm.</p> <p>Any thoughts?</p> http://www.silverlightshow.net/items/Caching-of-in-and-around-your-Silverlight-application.aspx#comment7293 jsneeringer http://www.silverlightshow.net/items/Caching-of-in-and-around-your-Silverlight-application.aspx Thu, 08 Dec 2011 03:07:41 GMT RE: Caching of, in, and around your Silverlight application (part 3) <p>Thanks Kevin, great article.</p> <p> This's my need. </p> http://www.silverlightshow.net/items/Caching-of-in-and-around-your-Silverlight-application.aspx#comment5261 Nguyen Thanh Tung http://www.silverlightshow.net/items/Caching-of-in-and-around-your-Silverlight-application.aspx Fri, 07 Jan 2011 12:14:46 GMT