Skip to content

Commit

Permalink
Merge pull request #128 from Axinyp/master
Browse files Browse the repository at this point in the history
修复超时时间没有默认值导致连接超时的bug
  • Loading branch information
nnhy authored Apr 9, 2024
2 parents 87d4f90 + d3f5395 commit 9f3407d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions NewLife.Redis/RedisOptions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ public class RedisOptions
public String? Password { get; set; }

/// <summary>超时时间。单位毫秒</summary>
public Int32 Timeout { get; set; }
public Int32 Timeout { get; set; } = 3000;

/// <summary>键前缀,只适用于PrefixedRedis</summary>
/// <summary>键前缀</summary>
public String? Prefix { get; set; }
}

0 comments on commit 9f3407d

Please sign in to comment.