I have an application in need of some caching, and for some of the semi-static data, I want them to stay in the cache a maximum amount of time (for instance 10 minutes) before being refreshed. My system merely retrieves data, never updates it, so I have no idea of when to flush the cache using the property. In the OSCache docs, such an ...
I'm wanting to programmatically monitor the cache size on a certain ASP.NET site. This is basically for the administration portion of a product, where we allow users to partially control whether their site uses caching or not.
Is there a way to do this. Should I be using the ManagementScope object to perform this query?
...
So I am being taught assembly and we have an assignment which is to find the time difference between reading from memory and reading from cache. We have to do this by creating 2 loops and timing them. (one reads from main memory and the other from cache). The thing is, I don't know and can't find anything that tells me how to read from e...
I am fairly new at using the ASP.NET MVC framework and was hoping that I could find some help about best-practises when caching various parts of my MVC web application. I know that stack overflow uses MVC and some pretty freeking awesome caching techniques, and its MILES faster than my app, even when running locally.
I have a few quest...
I know that NCache provides SQL dependency for Microsoft SQL Server and Oracle (10G R4 onwards). I am interested to know what other caching solutions are available, that comes with dependency on Oracle?
Does Velocity, memcached, etc. support SQL dependency to receive notifications/update the cache automatically, when something changes i...
So I am working on a project which uses ASP.NET. I am trying to call Cache["key"] but the compiler complains about how System.Web.Caching.Cache is "nat valid at this point".
If I call Cache obj = new Cache(); the obj is always null.
I can access HttpContext.Current.Cache - but this doesnt let me specify an absolute expiration and slid...
I am developing against a proprietary library and are experiencing some issues with the cache of the HttpWebRequest. The library is using code equivalent to below to make requests:
var request = WebRequest.Create("http://example.com/") as HttpWebRequest;
request.CachePolicy = new HttpRequestCachePolicy(HttpRequestCacheLevel.CacheIfAvai...
Situation: Google has indexed a page in a forum. The thread is now deleted. How/whether can I make Google and other search engines to delete the cached copy? I doubt they would have anything against that since the linked page does not exist anymore and keeping the index updated and valid should be in their best interests.
Is this possib...
I'm still learing VB.NET and usually I just google my questions, but this time I really don't know what to look for so I'll try here.
Trying to write a function that takes the cache key as a parameter and returns the cached object. No problems there, but I can't figure out how to pass the type into the function to use with TryCast, so t...
Suppose I have an ASP.NET application running across several web servers behind a load balancer:
Can I:
Force OutputCache (Page and/or Control level) to expire globally?
Force Data Cache (i.e. Cache.Insert) to expire?
Monitor ASP.NET caching usage (keys, RAM, etc) from a central location?
One possible solution would be to have every...
I built a site using LINQ and it has started to show issues with the results it brings up.
The results brought out by the query do not reflect the data in the database, they reflect an older version of the database.
In all the places where the LINQ data context was created it was disposed off properly. The sample code used in the sit...
How can I check for a javascript file in user's cache. If he refreshed the page or visits the site after sometime. I need not download that js file again. Does the js files get cleaned up after a site is closed.
...
In an ASP.NET MVC application during application_start a new thread gets startet. The thread loads data into the Cache and takes 5 minutes. The application needs to be aware that the loading is in process. Thats why I want to set a flag in an application variable.
I set Application["LoadingCacheActive"] to true when I start the thre...
In ASP.NET I would like to store an object in the cache which has a dependancy on all the files in specific folder and its sub-folders. Just adding the object with a dependancy on the root folder doesn't work. Is there in any reasonable way to do this other than creating a chain of dependancies on all the files?
...
I'm trying to compile google cache-table using Visual Studio 2005 and remains one issue :
\mm\cache_table.hpp(734) : error C2780: 'void std::_Destroy(_Ty *)' : expects 1 arguments - 2 provided
c:\arquivos de programas\microsoft visual studio 8\vc\include\xmemory(58) : see declaration of 'std::_Destroy'
\mm\cache_table.hpp(714) : while c...
I am wondering if anyone has any plugins or capistrano recipes that will "pre-heat" the page cache for a rails app by building all of the page cached html at the time the deployment is made, or locally before deployment happens.
I have some mostly static sites that do not change much, and would run faster if the html was already written...
I'm using mootools to toggle the display (and existence) of two DOM elements in one of my forms. Then, I am using javascript to validate the form to make sure that all of the required fields were filled in. The problem is that the the browser seems to be caching the elements. For example, I have html like this:
<input name="inputbox"...
Hi
I had 2 tables in Cache in web server. The size of tables is considerable huge. Each time to retrieve data I have to do a join on these 2 tables.
Other option I have is have nothing in cache and making a db call each time that will do a join on the db tables.
So what I want to know is doing a join on webserver is it costlier than...
I'm constantly hearing about person y had performance issue x which they solved through caching.
Or, how doing x,y,z in your programs code can hurt your caching ability.
Even in one of the latest podcasts, Jeff Atwood talks about how they cache certain values for speedy retrieval.
There seems to be some ambiguity in the terms "cache" ...
Lately my queries before caching into memcache have been taking forever to process! In this example, it took 10 seconds. All I am trying to do is get the 10 most recent hits in this case.
I am getting the feeling that it loads all 125,592 rows then only returns 10, am I right?
# User@Host: root[root] @ localhost []
# Query_time: 10 L...