BB.Caching.SharedCache.GetRandomReadConnection C# (CSharp) Method

GetRandomReadConnection() public method

Gets a random read-only connection.
public GetRandomReadConnection ( ) : StackExchange.Redis.ConnectionMultiplexer
return StackExchange.Redis.ConnectionMultiplexer
        public ConnectionMultiplexer GetRandomReadConnection()
        {
            return this._consistentHashRing.GetAvailableNodes()
                .ElementAt(this._random.Next(0, this._consistentHashRing.GetAvailableNodes().Count))
                .GetReadMultiplexer();
        }