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
2
votes
2 answers

How to connect to Azure Redis Cache

I am trying to connect to an instance of the Azure Redis Cache (Preview) from a Visual Studio Web Project. I am getting the following error: "Could not load file or assembly 'Authorization token passed by user Invalid". I have done the…
Frank Cannon
  • 1,643
  • 2
  • 18
  • 29
2
votes
2 answers

Windows Azure - In-Role Caching, Monitoring

I'm attempting to get In-Role Caching up and running. I'm having difficulty determining if the cache is being used (as we've got a wrapper around it that gracefully returns null if the cache isn't available--but makes it hell to sort out). I've been…
Anthony Compton
  • 5,271
  • 3
  • 29
  • 38
2
votes
1 answer

Widows azure cache not working with Windows Azure Storage 3.1

I have upgraded my Azure Storage DLL from version 2.1 to 3.1. I have a cache storage on Azure and I am not able to make it work with the new version of Storage 3.1.0.1. I'm getting a MethodAccessException when trying to create an instance of…
Vithozor
  • 610
  • 10
  • 22
2
votes
1 answer

NuGet can't resolve a dependency when installing ServiceStack.Caching.Azure

I'm attempting to install the Service Stack Azure Cache provider but I receive a NuGet error as follows. PM> Install-Package ServiceStack.Caching.Azure Attempting to resolve dependency 'ServiceStack.Common (≥ 4.0.12)'. Attempting to resolve…
Richard Adams
  • 591
  • 1
  • 9
  • 23
2
votes
1 answer

Azure in-role cache very slow

I have an azure cloud service consisting of one web role with azure cache co-located with the same role. I am seeing cache accesses to be too slow. Each get call takes ~800 ms. What could be wrong? What should i look at for optimization?
Aadith Ramia
  • 10,005
  • 19
  • 67
  • 86
2
votes
0 answers

Azure In-Role cache ErrorCode : SubStatus There is a temporary failure. Please retry later

I am experiencing a very strange issue trying to get an in-role cache working. I've only got 1 web role in the current deployment, and have set up in-role caching according to the MSDN docs and blogs alike. I've looked at all similar questions on…
MikeAtCodeSmart
  • 591
  • 7
  • 14
2
votes
2 answers

Azure Caching - "server collection cannot be empty"

I have a single Web Role, using MVC5. In web role properties I selected Enable Caching. In a controller in my MVC app I have: var cache = new DataCache("default"); But it throws an error: "Server collection cannot be empty" Is the controller the…
user888734
  • 3,797
  • 5
  • 36
  • 67
2
votes
1 answer

Azure Cache doesn't work (ErrorCode:SubStatus). SDK 2.2

I'm trying to use Azure In-Role cache (http://www.windowsazure.com/en-us/manage/services/cache/net/how-to-in-role-cache/). I'm using dedicated role scenario (host cache in dedicated role). I have 2 roles in solution - worker role and caching role…
berliner
  • 1,887
  • 3
  • 15
  • 23
2
votes
1 answer

Windows Azure Caching (Preview) Very Slow

I setup Windows Azure Caching because I wanted a high performance way to share real time data between multiple web roles. I've read that with the old shared caching anything over 10ms for access times typically indicates a problem and the new…
KingOfHypocrites
  • 9,316
  • 9
  • 47
  • 69
2
votes
3 answers

Azure Caching Platform Options - What Are The Alternatives?

I'm currently building a site that will be hosted in Microsoft Azure. The last site I created in this hosting environment used "Windows Azure Shared Caching". Some of you may already be aware that "Windows Azure Shared Caching" service will soon be…
SurinderBhomra
  • 2,169
  • 2
  • 24
  • 49
2
votes
4 answers

Cant get Azure Cache to work. "There is a temporary failure. Please retry later."

So, today I installed the azure SDK 2.1, and created a new project With a single WorkerRole, got the Caching package using NuGet, set the caching for the role to "Collocated" Set the Host to "WorkerRole1" in the app.config commented the…
Leonardo
  • 10,737
  • 10
  • 62
  • 155
2
votes
2 answers

Implementing a simple local memory cache on an Azure instance

I'm looking for a simple way to implement a local memory store which can be used on an Azure .NET instance I've been looking at Azure Co-located Caching and it seems to support all of my requirements: Work on both web roles and worker…
talkol
  • 12,564
  • 11
  • 54
  • 64
2
votes
1 answer

Co-located cache not working in web role

My sessions are not being cached. I am using co-located caching on my web role. I have the following in my web.config:
Dave New
  • 38,496
  • 59
  • 215
  • 394
2
votes
4 answers

Increasing the MaxBufferSize of a caching role

I'm trying to put an object which is ~60MB into a single cache item however I am constantly greeted with the following error ErrorCode:SubStatus:The connection was terminated, possibly due to server or network problems or…
JConstantine
  • 3,980
  • 1
  • 33
  • 46
2
votes
1 answer

Task cancelled error when using redis cache in c#

I build an out-of-process cache for my webpage's database. Though when I try to do something with it (Set, Get), I get the following error: A task was canceled Here's my redis cache code. any help would be great. thanks public class RedisCache :…
DanielY
  • 1,141
  • 30
  • 58