Skip to content

Commit

Permalink
Use ConnectionMultiplexer's default database rather than database 0 i…
Browse files Browse the repository at this point in the history
…f no database is specified in RedLockMultiplexer
  • Loading branch information
samcook committed Oct 22, 2017
1 parent c71fbce commit b78070d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ public abstract class RedLockConnectionProvider
internal abstract ICollection<RedisConnection> CreateRedisConnections();
internal abstract void DisposeConnections();

protected const int DefaultRedisDatabase = 0;
protected const int DefaultRedisDatabase = -1;
protected const string DefaultRedisKeyFormat = "redlock:{0}";
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public static implicit operator RedLockMultiplexer(ConnectionMultiplexer connect

/// <summary>
/// The database to use with this redis connection.
/// Defaults to 0 if not specified.
/// Defaults to the ConnectionMultiplexer's default database if not specified.
/// </summary>
public int? RedisDatabase { get; set; }

Expand Down

0 comments on commit b78070d

Please sign in to comment.