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
0
votes
1 answer

Is Redis an appropriate message system for a corporate alert messaging system?

I've been asked to create a simple alert messaging system for my organization. I've been looking into Redis and I'm wondering if I should build the app with that as the communication engine. My requirements are: Alert composer must be web…
joe_coolish
  • 7,201
  • 13
  • 64
  • 111
0
votes
1 answer

Azure Redis Caching in MVC project

I am very new to Azure Redis caching. I am using MVC 5 + Entity framework 6.1. and database is Azure SQL Server. Website is also on Azure. I need to cache few tables in Redis which are used for only read. Current size of these tables are 8 GB and…
0
votes
1 answer

Why Azure portal is showing Redis Connections Connected client 4.99K?

I have singleton azure-redis database client used in our application. However on Azure portal it shows connected clients 4.99K. I am not sure who are those clients and why it is showing 4.99K clients connected when I have singleton instance? Sample…
dotNet Decoder
  • 511
  • 5
  • 8
0
votes
0 answers

Azure Redis Cache: super slow List*Pop/Push operations

I'm working with StackExchange.Redis library, with ListLeftPush() and ListRightPop(). They are super slow. The same code on the standalone Redis is thousand times faster. Maybe the Azure Redis Cache is suboptimal for these operations? Somebody…
0
votes
3 answers

What is the equivalent of Sets.GetAllString() from BookSleeve in StackExchange.Redis?

In BookSleeve there is a connection.Sets.GetAllString() method. What is the equivalent in StackExchange.Redis? Thanks!
Fabian Nicollier
  • 2,811
  • 1
  • 23
  • 19
0
votes
1 answer

Redis sorted set for post-vote and user-reputation

I use Stackexchange.Redis in c# . How StackOverflow use sorted set to calculate the post-vote and user-reputation in Redis. How to use ZADD ,ZUNIONSTORE or ZINTERSTORE . How to use [WEIGHTS weight [weight ...]] [AGGREGATE SUM|MIN|MAX] parameter to…
Amir Movahedi
  • 1,802
  • 3
  • 29
  • 52
0
votes
1 answer

Why does StackExchange.Redis frequently throw an "Unexpected response to EXEC: MultiBulk: 0" exception during transaction.ExecuteAsync()?

I tried debugging through the code and it seems to repro mainly when multiple clients are trying to modify the same key in a transaction. Retrying the transaction usually gets rid of the error, but is there any reason why the exception is thrown in…
0
votes
1 answer

How to find Keys with specific member value?

I'm new in Redis and use Redis 2.8 with StackExchange.Redis Libarary. How can I write a KEYS pattern to get all keys with specific Hashed member value? As I use StackExchange.Redis and want to get Keys with a pattern like this (when username is a…
Mehdi
  • 5,435
  • 6
  • 37
  • 57
0
votes
0 answers

StackExchange.Redis throws an exception on Connect when Thrown CLR Exceptions is Enabled

I'm using StackExchange.Redis, which works wonderfully. We use Redis as a fallback cache system and so the application doesn't actually require it to run. When we're working locally with our project, we like to enable the Thrown Common Language…
Grant H.
  • 3,689
  • 2
  • 35
  • 53
0
votes
0 answers

Enterprise library transient fault handling together with StackExchange.Redis to connect to azure redis cache

I'm currently using MS Enterprise Library 6 Transient Fault Handling application block. I've provided an invalid RedisCacheKey to simulate service disruptions. Transient Fault handling var retryStrategy = new FixedInterval(3,…
Lee Gary
  • 2,357
  • 2
  • 22
  • 38
0
votes
1 answer

StackExchange.Redis deserialize hast to poco

I'm using StackExchange.Redis as my redis client and it works nicely. I store a number of values in a hash and currently do a manual mapping once I've got the the hash values out of the database var values = database.HashGetAll(myKey); Does anyone…
Neil
  • 5,179
  • 8
  • 48
  • 87
0
votes
1 answer

StackExchange.Redis: one of Redis command not found

There is a command in Redis named "Keys", when given a pattern, you can get all the matching keys. But I can't find it in StackExchange.Redis. Could anybody kindly tell me where I can find this command in StackExchange.Redis?
user3007273
  • 109
  • 1
  • 5
-1
votes
1 answer

Redis on windows 11 says connection refused if we try to connect from a different machine

I would like to inform that for windows 11 Redis installation on Ubuntu 22.04.2 LTS its observed that if we start Redis server and try to connect from a different system using redis-cli -h IP_Address -p 6379 its always says "Connection refused".…
ikillapps
  • 146
  • 7
-1
votes
1 answer

How to identify the RedisValue from key dynamically net core

I'm new to Redis. I was doing get all keys and iterating key and get the value. Here is the code: var keys = Connection.GetServer("localhost", 6379).Keys(); foreach (var key in keys) { try { …
prasanthi
  • 562
  • 1
  • 9
  • 25
-1
votes
1 answer

.net 6 and Redis cache integration using sets , hashes

.net 6 and Redis cache integration using sets , hashes. Please provide source code for this. Use latest stack exchange library.
dev
  • 105
  • 1
  • 1
  • 3
1 2 3
73
74