Questions tagged [httpruntime.cache]
53 questions
1
vote
1 answer
How well does HttpRuntime.Cache scale?
We are thinking of using HttpRuntime.Cache for storing data accessed frequently by all users, but wanted to know what are the performance implications of using HttpRuntime.Cache? Are the contents of the cache transported in every http request and…

Grace
- 2,548
- 5
- 26
- 23
1
vote
0 answers
Cache.EffectivePrivateBytesLimit set to '-1' even though value specified in web.config
I have entered the value in web.config for the cache size as below:
However, when I check the value of …

Karl Cassar
- 6,043
- 10
- 47
- 84
1
vote
1 answer
profiling an ASP.Net web application taking loads of memory (>1.2GB) over time
I have a web application which on first page load takes approximately 200MB of memory. In production, by a relatively short time (< 24hours), it grows up to sometimes 1.2GB of usage. Is there any way one can check what is taking so much memory,…

Karl Cassar
- 6,043
- 10
- 47
- 84
1
vote
2 answers
Has using the HttpRuntime.Cache changed in ASP.NET MVC?
So, I was looking over my standard cache utility when preparing to unit test a controller and thought, hey, is accessing the HttpRuntime.Cache directly considered harmful in MVC?
I wrap the cache in a proxy class that implements a cache-like…
user1228
1
vote
1 answer
ASP.NET (MVC3) - HttpRuntime.Cache - key intermittently present
I have a really strange problem and I'm completely puzzled.
I have a piece of code that parses some data and stores the result in our webserver's HttpRuntime.Cache using the Insert method. This is stored for 10 seconds. There seem to be some…

Razzie
- 30,834
- 11
- 63
- 78
0
votes
0 answers
What are HttpRuntime.Cache entries "__AppStartPage__" for?
In my asp.net webforms app, I've added code to the Application_Startup method to schedule a couple of daily and weekly tasks. That all works fine. I decided to add a ListBox on my maintenance page to show me what the HttpRuntime.Cache contents are…

Jim
- 33
- 8
0
votes
2 answers
HttpRuntime.Cache how to discard
I have a problem with an asp.net site (4.0 framework) I would like to understand how to properly discard of values in HttpRuntime.Cache between page requests. I am storing values for pagination , control state etc on a search page, and it works fine…

mike
- 67
- 2
- 5
0
votes
0 answers
"Current user *** have no permission.",it showed this while using SqlCacheDependency and HttpRuntime.Cache.How to solve it?
SqlCacheDependencyAdmin.EnableNotifications(connString);
SqlCacheDependencyAdmin.EnableTableForNotifications(connString, tableName);
SqlCacheDependency sqlDenpendency = new SqlCacheDependency(entryName,…

Joeries
- 81
- 4
0
votes
3 answers
Is the ASP.NET Cache independent for each host header set in IIS7
I have a site that dynamically loads website contents based on domain host name, served from IIS7. All of the domains share a cached collection of settings. The settings are being flushed from the cache on almost every page request, it seems. This…

Corgalore
- 2,486
- 2
- 23
- 32
0
votes
1 answer
How to find out how much memory is currently consumed by cache?
I'd like to modify the value of my Sliding Expiration time span based on how much memory is available. If the site's traffic is high at any point in time, more data will be added to the cache than during quieter periods. During those quiet periods I…

DaveDev
- 41,155
- 72
- 223
- 385
0
votes
1 answer
Default expiry time for HttpRuntime cache
I know you can give specific expiry time by using System.Web.HttpRuntime.Cache.Add() but I'm curious what the default expiry time is when you add a cache item by doing System.Web.HttpRuntime.Cache["a"] = "b"
Thanks :)

let_the_coding_begin
- 378
- 4
- 13
0
votes
1 answer
Is HttpRuntime.Cache the best way to store global settings in ASP.Net?
Our ASP.Net application uses a variety of global settings that are used throughout the application. The settings are stored in the database as Key/Value pairs.
At the Application start event, we load these into the HttpRuntime.Cache object and then…

navigator
- 1,678
- 16
- 29
0
votes
2 answers
MVC 5 session and/or caching data
I am coding an MVC 5 internet application and when a user logs in, I wish to store the log in details so that I can retrieve these details in any class.
I have done some research, and I can either cache the data, or store this data in a session.…

Simon
- 7,991
- 21
- 83
- 163
0
votes
0 answers
Override value in cache without affecting dependency
I'm trying to override value of specific key in cache. However, I would like to keep existing setup of cache dependencies.
This is example code to illustrate of what I'm trying to achieve.
public ActionResult AddToCache()
{
…

Luke
- 1,872
- 20
- 31
0
votes
0 answers
HttpRuntime Cache value automatically cleares in idle
we are developing an mobile application and we have used WCF service to fetch SQL Server data through online.
We are trying to authenticate each WCF Service call(server) by passing headers from client (mobile application). For this we have generated…

Kathir
- 137
- 3
- 19