skip to Main Content

SignalR and Redis

I've got a project that uses SignalR and a RedisBackplane, we've moved from StackExchange.Redis to ServiceStack.Redis due to Redis Sentinel compatibility issues (Not movable) However, it now looks like the support for SignalR Redis Backplane seems to be tied into…

VIEW QUESTION

How to switch from hmset() to hset() in Redis?

I get the deprication warning, that Redis.hmset() is deprecated. Use Redis.hset() instead. However hset() takes a third parameter and I can't figure out what name is supposed to be. info = {'users': 10, "timestamp": datetime.utcnow().strftime('%Y-%m-%d %H:%M:%S')} r.hmset("myKey", info) The above…

VIEW QUESTION

One Lettuce Redis connection per servlet?

In a servlet, should Lettuce Redis connections be created in init() and shutdown in destroy() or should a connection be created for every request (in doPost or doGet?) I am using sync RedisCommands (connection.sync()) Lettuce states: Lettuce is thread-safe by…

VIEW QUESTION
Back To Top
Search