Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6779497
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T16:23:31+00:00 2026-05-26T16:23:31+00:00

What are all the caching options\levels possible in web-application BLL layer (I understand we

  • 0

What are all the caching options\levels possible in web-application BLL layer

(I understand we can use Session dictionary only in aspx and ascx code behind. right?)

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T16:23:31+00:00Added an answer on May 26, 2026 at 4:23 pm

    The session is available as a storage medium at any level of an ASP.NET web app, however many of the classes involved in accessing it are sealed and not easily mockable (HttpContext, HttpSessionState, etc) and it is considered bad practice to have your business logic ‘know’ how your application is being hosted. I’d suggest hiding any cache implementations behind a generic ICache interface, which can then be easily switched out if you re-use your BLL in another application.

    A few options available to you are:

    A per request cache using HttpContext.Items (http://www.4guysfromrolla.com/articles/060904-1.aspx)

    A session cache using HttpContext.Session (if your application is load balanced, and you do not have sticky sessions extra work must be done to ensure a consistent session state (eg using SqlSessionState)).

    An application cache using HttpContext.Cache or HttpRuntime.Cache (again if your application is load balanced and you do not have sticky sessions extra work must be done to ensure a consistent application cache).

    Hope this helps.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We've created a caching layer to our J2EE-application. In this instance we use Ehcache.
All throughout an application wherever error messages (or other user messages) are used I
Currently browsers have incomplete caching implementation. It only allows to set expiration or keep
Jetty has a CacheControl parameter (can be specified webdefault.xml) that determines the caching behavior
I'm looking to write a basic PHP file caching driver in a PHP application
I know that its possible to reference third party JavaScript files on the web
Here are all my rules with comments: <Directory /home/*/public_html> # prevent directory browsing Options
By referring to C++ catching all exceptions try { int i = 0; int
I had someone mention to me that catching all exceptions is not necessarily good
In Java, is there any way to get (catch) all exceptions instead of catching

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.