Glimpse Cache Tab show other Cache Providers, such as Memory Cache - glimpse

It seems that Glimpse is showing the HttpRuntime cache within the Cache tab. Is there any way, one can natively show other cache providers, such as:
Memory Cache - http://msdn.microsoft.com/en-us/library/system.runtime.caching.memorycache(v=vs.110).aspx
For example, MVC Donut Caching by default uses such Memory Cache and I would like to preview what's inside such a cache through Glimpse
or any other Custom cache provider of our choice?
Thanks for your help!

Out-of-the-box only the HttpRuntime.Cache is being monitored, but you can create your own tab implementation by implementing the ITab interface.

Related

How to implement cache in spring-integration?

I want to implement the cache so whenever table is updated in database ,my entity should get updated.How can i implement caching feature in spring integration ?
See the Spring Framework Caching Abstraction.
You would need some mechanism to invalidate the cache when the external resource changes.

Use external cache provider for RazorEngine

Currently RazorEngine, caches the template in memory.
Is there anyway to use an external caching provider?
We have 10 web servers in a webfarm, and now each of them needs to cache the template separately. That would be great if we can implement our own caching system and use something like Memcached.
Yes, you should now be able to do that in 3.5.0 (currently beta). You can provide your own ICachingProvider implementation that fits your needs. Documentation and an example implementation can be found here. What you want to do is saving the compiled assemblies and then loading the assemblies and the template-types when needed.
Disclaimer: I contributed that API to RazorEngine.

GridGain and Memcached Cache Selection

I'm evaluating GridGain as a caching solution for my PHP based web sites. I'll be using the Memcached interface. It would be nice to be able to access different caches (i.e. a replicated cache and a local cache) on the same node. From what I can find, however, it is not possible to select a cache when using the Memcached interface; it just uses the default cache. The documentation on using the Memcached interface doesn't mention anything about which cache it uses or if a cache can be selected. Is there a way to specify the cache to use when using the Memcached interface that I have missed or can I only use the default cache?
I think the easiest way is to use the default cache.
By looking at code on GridGain server side, it looks like you could still specify cache-name in the "extra" space of memcached protocol, but it is not obvious how to achieve it from the memcached client side.
If you can switch to GridGain Client API, then you can freely use any cache you have configured.

App Fabric Cache Monitor

With the App Fabric Cache there are limits to the number of transactions per hour. Is there any way to monitor this? Firstly for testing, to find out how much cache we will need, and primarily so we don't hit the limit and have the site go down because we can't access the cache any more.
yes, you can use the Azure Application Manager as explained in this blogpost:
http://blogs.msdn.com/b/appfabric/archive/2011/06/20/introducing-windows-azure-appfabric-applications.aspx
there are some opensource tools available on codeplex as well:
http://www.codeplex.com/site/search?query=azure%20monitor&ac=3
i usually stick to the azure provided tools..
At the moment there is nothing in the management portal or in any in of the APIs that you can use to determine how many transactions you've used against the cache in any given hour (or how many connections you're using, the other limiting factor when using app fabric cache).
If this is particularly important you might try building a wrapper around cache access and use a scalable counter which increments every time you perform a transaction.

Dispose cache from multiple web role instances from azure application

i am having a problem related to the cache disposal in azure cloud application.
i am using MVC3 structure, using 2 instances.
as we know that the Microsoft azure automatically allocates a web role to serve a web request based on load balancing.
but the problem is that when i dispose a cache "HttpRuntime.Cache.Remove("CacheName")", it is disposed of from the current web role that i am currently alloted by microsoft.
and doesnt dispose the cache from the other instance.
please help me, can i dispose a cache from the two instance a the same time?
using any C# sharp code.
This is a good reason to use a distributed cache. Synchronizing cache adds and removes individually across many instances and caches is hard to do well. Any code or solution that attempts to solve the issue will be pretty hacky. Moving the caching out to a distributed cache will solve the problem for you correctly.
Have you looked at the Windows Azure AppFabric Caching solution?

Resources