Questions tagged [azure-caching]

Azure Caching suite of offerings providing distributed, in-memory caching solution for Microsoft Azure applications. It refers to Azure Redis Cache (Preview), Azure Managed Cache and Azure In-Role Cache.

There are two Distributed In-Memory Caching suites from Microsoft in Azure, namely "Azure Shared Cache" and "Azure Cache".

Azure Shared Cache is a distributed, in-memory, multi-tenant, shared caching solution. It is now deprecated in favor of proper Azure Caching, and will be retired on September 1, 2014.

Azure Cache is a distributed, in-memory, single-tenant, role-based caching solution. Azure Caching is feature-rich such as support for Regions, Tags, High Availability; it also has a wrapper to migrate applications that use Memcached.

Offerings

Azure Cache is available in three offerings

Azure Redis Cache (Preview)

A new cache offering from Microsoft that provides a fully managed Redis caching service. As this service is currently in preview it does not offer an SLA, nor does it come with any attached cost.

Azure Managed Cache Service

Formerly known as Dedicated application has to attach/add 'Cache Worker Roles' (special purpose Azure Worker Roles for Caching) to use Caching. These roles are dedicated solely for 'Caching' purpose, hence the name 'Dedicated'.

In-Role Cache for Azure Cache

Formerly known as Collocated application could use unused memory of their existing roles (Web/Worker) for Caching purposes. In this case, customer can configure how much of their role memory is reserved for Azure Cache. By default this is set to 30%.

217 questions
5
votes
1 answer

Azure Cache - How to Determine if a Key is in cache?

Is there a way, using Azure Caching, to determine if an object having a specific key exists in cache, without actually returning the object itself? I'm currently doing something like public bool IsKeyInCache(string cacheKey) { …
Mr. T
  • 3,892
  • 3
  • 29
  • 48
5
votes
1 answer

How to use the Azure Cache Service (preview) from Java

I'm interested in using the Azure Cache Service (preview) from Java. The only docs I can find are about using it via .Net. The article Run your Memcache app with Windows Azure Cache Service (Preview) suggests it's possible through the memcached…
Thomas Kappler
  • 3,795
  • 1
  • 22
  • 21
5
votes
2 answers

Azure caching and entity framework deserialization issue

I have a web project deployed in azure using colocated caching. I have 2 instances of this web role. I am using Entity framework 5 and upon fetching some entities from the db, I cache them using colocated caching. My entities are defined in class…
Ilyas
  • 741
  • 7
  • 18
5
votes
1 answer

Intermittent Azure Emulator Error: Could not load file or assembly 'XX' The filename or extension is too long.

Using Visual Studio 2012 Premium SP1 11.051106.01 and Emulator version 1.8 I get the following error about ever 3-5 page refreshes. I then have to stop debugging and re-deploy to the emulator. I have at least 5 developers working on Azure and they…
MattPII
  • 256
  • 3
  • 6
5
votes
0 answers

Is there a way to run custom code on Azure Cache expiration? (where last cached value is accessible)

What I mean is a kind of event or callback which is called when some cached value is expiring. Supposedly this callback should be given the currenlty cached value, for example, to store it somewhere else apart from caching. To find such a way, I…
moudrick
  • 2,148
  • 1
  • 22
  • 34
5
votes
4 answers

Windows Azure Web-Role Caching (Preview) "hangs" makes the emulator stuck in deploy loop

I'm trying to replace the Windows Azure AppFabric Cache with the newly released Role-based caching that was introduced in the June 2012 SDK release by following the guides on Microsoft's website. However, when checking the "Enable Caching (Preview)"…
Andre Andersen
  • 1,211
  • 1
  • 11
  • 19
4
votes
1 answer

How to clear whole Windows Azure Appfabric Cache on WebRole start?

I'm trying to do what might be a simple thing, but i just can't find the answer. I know how to delete cache on the application level (for a website). But i need to CLEAR ALL THE CACHE of my azure appfabric cache on webrole start. EDIT : What if it…
kdstack
  • 197
  • 2
  • 11
4
votes
2 answers

Azure DataCaches and regions

I understand that regions in Azure caches provide a different way to access objects in the cache (other than using the key). However, I'm wondering why there is a version of DataCache.GetAndLock() that accepts both the key and the region. Isn't the…
Sebastian Krysmanski
  • 8,114
  • 10
  • 49
  • 91
4
votes
1 answer

Table Storage Service (Azure's implementation of nosql) vs Windows Azure Caching (unstructured in memory cached)

We want to implement caching in Azure for two main reasons: Speed up repetive data access Reduce stress on the database Here are the characteristics of the data we are planning to cache: Relatively small (1 - 100 kb) Specific to each customer Not…
SemanticZen
  • 1,141
  • 14
  • 21
4
votes
2 answers

Serializing Entity Framework objects for Azure Cache

we use Azure Caching directly (and not through one of the available Entity Framework wrappers). Apparently, for distributed caching, we need to serialize the objects. Unfortunately, this causes issues with lazy-loaded DbContext-based proxies used…
tec-goblin
  • 196
  • 1
  • 11
4
votes
2 answers

Why does Web outputCache config section pointing at Azure Shared Cache slow down every request?

My question is similar to this one, but my issue is with Windows Azure Shared Caching -- not the newer Windows Azure Caching. It's really a strange issue. I have a shared azure cache set up and working on one hosted cloud service. The app is using…
4
votes
2 answers

Possible to run Azure Caching Preview without emulator?

We use some Azure specific features (mostly blob storage) in our applications. With blob storage, we figured out how to run it without requiring the sluggish Azure Emulator. We're experimenting with the Azure Caching Preview now. It does some pretty…
Dusda
  • 3,347
  • 5
  • 37
  • 58
3
votes
2 answers

Azure Cache/DataCache style Regions in Redis

I am in the planning process of moving a C# ASP.Net web application over to Azure (currently hosted on a single dedicated server) and am looking at caching options. Currently, because we only have one instance of the application running at one time,…
Gareth Hopkins
  • 354
  • 1
  • 11
3
votes
2 answers

Typecasting of Azure cache object is always null

That's very weird as unable to cast a DataCacheItem to List Collection. i am pulling the value from database and Storing it to in Cache but if i ask cache to return the data with TypeCast, then it refused to do that. Cannot cast 'isValueInCache'…
joshua
  • 2,371
  • 2
  • 29
  • 58
3
votes
1 answer

Using HttpSessionState in web roles

I want to be able to use dedicated or co-located caching in my Azure web roles. The problem is that the application I am migrating uses HttpSessionState extensively. I don't want to change all of this code because: This is time consuming…
Dave New
  • 38,496
  • 59
  • 215
  • 394
1
2
3
14 15