"I have to make sure Server memory A is equal to Server memory B"
I don't think this is achievable in any way.
What you actually want is a Distributed Cache
mechanism. the common options are:
- AppFabric (Official Add-On to IIS from Microsoft)
- NCache (Basic version is free)
- Memcached (Mature, popular and considered very fast)
Keep in mind though, that HttpContex.Current.Cache
is static and per App-Domain. it means that once you're switching to a Distributed Cache
solution you'll have to change all calls to HttpContex.Current.Cache
to the new cache API.
The good news are, that at least Session State
and Output Cache
can be easily configured to use the new cache (using web.config
usually).