Share via

ConnectionMultiplexer HashSlot function

Connie Elim 21 Reputation points Microsoft Employee
2021-06-17T20:49:06.18+00:00

Hi,

My team is using Redis' ConnectionMultiplexer HashSlot function. Is this HashSlot function dependent on Redis connection? Or will it still provide me the correct slot when Redis is down?

Thanks!

Azure Cache for Redis
Azure Cache for Redis

An Azure service that provides access to a secure, dedicated Redis cache, managed by Microsoft.


Answer accepted by question author

Anurag Sharma 17,636 Reputation points
2021-06-21T06:27:31.857+00:00

Hi @Connie Elim , thanks for your patience. I have received the reply from product group. As per them a server connection is not necessary.

Below is the implementation you can check for more details:

https://github.com/StackExchange/StackExchange.Redis/blob/main/src/StackExchange.Redis/ServerSelectionStrategy.cs

Please let us know if this helps.

----------

If answer helps, you can mark it 'Accept Answer'

Was this answer helpful?

0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.