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

FlushDatabase() public method

Flushes the database that the connection belongs to.
public FlushDatabase ( StackExchange.Redis.ConnectionMultiplexer connection ) : void
connection StackExchange.Redis.ConnectionMultiplexer /// The connection. ///
return void
        public void FlushDatabase(ConnectionMultiplexer connection)
        {
            EndPoint[] endPoints = connection.GetEndPoints();
            foreach (var endPoint in endPoints)
            {
                connection.GetServer(endPoint).FlushDatabase(this.Db);
            }
        }
    }