Skip to main content

All Questions

0 votes
1 answer
594 views

StackExchange.Redis Async with Fire and Forget not setting the keys

I'm trying to figure out when I try to use Redisclient with Async operations with command flag as Fire and Forget, out of 5 stringSet only 3 is getting set 2 strings are not available in the server. ...
Poothabalan's user avatar
1 vote
1 answer
669 views

Under what circumstance could improper use of .NET 4.8 async/await bring down a multi-instance Azure App Service?

We have a large scale Asp.Net MVC application built on .Net Framework 4.8. We have rules based auto-scaling with minimum instances held during peak hours. We've recently been having outages during ...
Hallmanac's user avatar
  • 581
1 vote
0 answers
523 views

Differences between StringGetAsync vs StringGet in StackExchange.Redis Multiplexer Connection

I was wondering that there are any performance differences between StringGetAsync vs StringGet while we are using the StackExchange.Redis Multiplexer Connection. The StackExhange.Redis Document ...
Sabri Korkmaz's user avatar
-1 votes
1 answer
422 views

Await Task.WhenAll(BatchList) - Code continues before Redis Cache is updated

I am calling Redis with a batch request, though it seems that my code is continuing past the Await Task WhenAll statement before the cache has been updated. Am I awaiting the tasks in the wrong way? ...
Holland Risley's user avatar
9 votes
1 answer
1k views

Redis clients not being dropped by ASP.NET app, running on Azure

We have a .NET 4.6.1 ASP.NET Web Forms app running on an Azure App Service. I say Web Forms, but the app also has Web Api 2 baked in, as well as two WebJob projects performing several tasks each. We ...
kim3er's user avatar
  • 6,476
0 votes
1 answer
239 views

SocketClosed on ZADD

I'm trying to efficiently insert 75k+ strings (filenames) into a redis Sorted Set for initial data seeding. With this code I am getting RedisConnectionException: SocketClosed on ZADD which is probably ...
Joe Phillips's user avatar
  • 51.3k
1 vote
1 answer
1k views

.NET StackExchangeRedis and order of execution with Batch not guaranteed?

I am reviewing the following code which is trying to: add an key/value to a Redis db. set an expiry on that new redis key. i.e. { var batch = database.CreateBatch(); var tasks = new Task[] ...
Pure.Krome's user avatar
  • 87.2k
2 votes
1 answer
373 views

Func for async goes in deadlock?

Objective: I am using redis for cache and trying to get a cache value if not available get from repo and set the cache value. Problem: client side js keeps waiting forever and it seems to be in ...
Justin Homes's user avatar
  • 3,809
1 vote
1 answer
1k views

Dead lock when retrieving several keys from Redis

I'm trying to get the result of this queries to redis (using stackexchange C# client) in parallel but somehow I'm running in deadlock and not sure where The method for retrieving the data: public ...
mitomed's user avatar
  • 2,076
6 votes
1 answer
3k views

How do I set up a verifiable expectation on a mocked async method? [duplicate]

I'm trying to use Moq to test integration between a WebAPI controller and a Redis database, using the StackExchange.Redis client, and cannot work out how to set up a verifiable expectation on a mocked ...
Dylan Beattie's user avatar
2 votes
0 answers
1k views

Parallel async retrieval from Stackexchange.Redis doesn't feel parallel

I am trying to read and process some data from Redis in parallel. However, after printing various time stamps of when operations start and end and measuring such times it seems as if the tasks do not ...
CyberDude's user avatar
  • 9,079
5 votes
1 answer
10k views

StackExchange.Redis Async calls slower than sync calls

I understand that the point of asynchronous methods are not to improve performance but I am finding that the asynchronous methods on the StackExchange.Redis is taking alot longer than the sync methods....
Kaladin's user avatar
  • 803
7 votes
1 answer
7k views

StackExchange.Redis async call hangs

Trying to figure out why this code hangs. I can remove any one of the 3 lines at the bottom of the test and it won't hang, but all 3 together makes it hang. Any help would be greatly appreciated! [...
Eric J. Smith's user avatar
9 votes
1 answer
4k views

StackExchange.Redis Deadlocking

I'm using StackExchange.Redis (SE.R henceforth) in my Nancy application. There is a single global ConnectionMultiplexer that gets automatically passed around by Nancy's TinyIoC via constructor ...
Chris Pfohl's user avatar
  • 19.1k