Questions tagged [stackexchange.redis]

A high performance .NET redis client library

StackExchange.Redis is a high-performance redis client library for .NET and Mono applications, allowing massively concurrent usage from multiple threads (for example, on a busy web site). The library exposes synchronous, asynchronous and fire-and-forget APIs, allowing it to support a wide variety of use-cases. Additionally, the client supports internal management of connections to multiple servers, including both master/slave setups and redis "cluster". The entire set of redis functionality is included (including auto-resubscribe for pub/sub connections), with the exception of the blocking pop operations, which are not compatible with the multiplexer design.

The client was designed, created and released by the Stack Exchange development team, and is the redis client that drives the Stack Exchange Network (including Stack Overflow). It supersedes the BookSleeve client that Stack Exchange had been using previously

Links:

1108 questions
-1
votes
2 answers

Can i use wild card search for Redis HSCAN?

I have Hash keys like this in my cache - products:P101 products:P211 products:P327 ... Now i want to HSCAN on these cache items using widlcard but it is not working hscan "products:P121" 0 //this works scan 0 match products:* //this works hscan…
user979189
  • 1,230
  • 2
  • 15
  • 39
-1
votes
1 answer

How to fix Timeout awaiting response issue when using Azure Redis Cache?

I have a method which takes input as list and store each item in Azure Redis cache. public async Task StoreAsBatch(T data) { var storeData = new List>(); try { foreach…
akhil
  • 1,649
  • 3
  • 19
  • 31
-1
votes
1 answer

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? ClearKey($"ordersList:{apiAccount.Id}"); var list…
Holland Risley
  • 6,969
  • 9
  • 25
  • 34
-1
votes
1 answer

Unable to resolve service for type 'ServiceStack.Redis.Generic.IRedisTypedClient in ASP.Net Core

I have ASP.Net Core 2.1 app. Need to use RedisCache as Cache. This is how my methods look to add an item to Cache. public class RedisCache : ICache //custom interface { #region Private private readonly IConfiguration…
Kgn-web
  • 7,047
  • 24
  • 95
  • 161
-1
votes
1 answer

Redis sizing for Production

I have few queries regarding Redis Cluster setup: 1.Does redis support cross site replication ? When we start redis cluster,can we decide what will be the slave of each instance. 2.I need to store around 11 billion keys,with full persistance and…
-1
votes
1 answer

Set a zip file to redis cache

My problem is saving and reading a zip file to a Redis Cache database which located onAzure. I tried something with StackExchange.Redis but I did not managed it. Do you know any example or solution about that? My Code like that.For this code I am…
leo
  • 445
  • 8
  • 25
-1
votes
1 answer

Unable to find a default constructor to use for type Microsoft.AspNetCore.Mvc.ViewFeatures.Internal.DynamicViewData

I am getting this error when trying to Deserialize the string from the redis cache using Newtonsoft.Json. where HeaderTopViewComponent is model class of one of my view component "" like: …
-1
votes
1 answer

Cannot connect to on-premises Redis Sentinel failover system with ASP.NET Redis SessionState Provider

I have an on-premises Redis environment set up with Sentinels for failover. I am attempting to use Redis as my SessionStateProvider within my MVC application. I have installed the Microsoft.Web.RedisSessionStateProvider NuGet package, and I have the…
Chris Bohatka
  • 363
  • 1
  • 4
  • 14
-2
votes
0 answers

"Inquiry Regarding ZeeSQL Support Services"

"facing an issue where the URL on https://zeesql.com/ provided for purchasing a license, https://license.zeesql.com/, is not loading or working for me. This has been a consistent problem across different devices and browsers." ? wants to know the…
-2
votes
1 answer

How do I fix " (Variable name here) is a variable but is used like a type?"

So I have a method that accepts an argument to provide the type, and I want to pass in this type into a deserialization of some data that I am getting back from Redis Cache. But it says "(variable name) is a variable but is used as a type". Does…
-2
votes
1 answer

Azure Redis Cache - Need help on choosing MaxMemory-Reserved & MaxMemory-Policy

1) What is the ideal value to set for MaxMemory-Reserved configuration for different Redis tiers? Do we have any recommendation/guidance which we can refer to? 2) Which one from the following is better approach : ->Implement TTL for all the…
Pratik Mehta
  • 1,310
  • 4
  • 15
  • 37
-3
votes
0 answers

How to unit test a method with a redis-subscription block?

I need your help on testing a unit which includes a redis subscription block. I tried so many variations but cant find a compile-error-free test code :( . How would you test the method below with xunit ? (btw I am a newbie in testing and I try to…
katmanco
  • 1,146
  • 12
  • 24
-3
votes
1 answer

How to initiate a Redis Connection in the background without awaiting

I want to initiate the Redis connection as a background task, so that the user need not await for the Redis connection to get established. If Redis connection is not setup or if Redis is unavailable then data shall be fetched from the source,…
Shaheer
  • 155
  • 1
  • 7
1 2 3
73
74