L2 Cache

Thread is closed for posting
2 posts, 1 answers
  1. alo
    alo avatar
    53 posts
    Member since:
    Jan 2009

    Posted 15 Jul 2011 Link to this post

    I have a couple questions regarding the L2 Cache.

    1)  What is the best way to enable the L2 Cache for a web application?  If possible, please provide detailed instructions on how to do so.  I don't believe any of the ASP.NET examples in the SDK Browser enable the cache.  In a quick test, I was able to enable it by passing a BackendConfiguration object to my EntitiesModel on my web page, but I'm thinking there must be a better way. 

    2) Does the OpenAccess DataSource use the L2 Cache?  When I enable the L2 Cache by passing in a BackendConfiguration object to my EntitiesModel, the OpenAccess DataSource does not use the cache.

  2. Answer
    Alexander avatar
    727 posts

    Posted 15 Jul 2011 Link to this post

    Hi Alo,

    You can enable the L2 cache globally in your backend settings and all context instances will have the level 2 cache enabled, so you can use the default constructor. To do that, right-click on the design surface and open the Model Settings dialog. Then switch to the Backend Settings tab, check the Enable the 2nd level cache checkbox and click OK.

    Once you have this setup, the OpenAccessDataSource will also take advantage of the L2 cache, as it is using the default constructor of the context class and as we said, by default the cache will be enabled for all context instances. I hope that helps.

    the Telerik team

    Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

Back to Top