Skip to content

Commit

Permalink
Merge pull request #129 from Axinyp/master
Browse files Browse the repository at this point in the history
增加option.Timeout判断,防止出现连接超时情况
  • Loading branch information
nnhy authored Apr 9, 2024
2 parents 9f3407d + 9b1db47 commit e2335bc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion NewLife.Redis/FullRedis.cs
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,8 @@ public FullRedis(RedisOptions options)
Server = options.Server;
Password = options.Password;
Db = options.Db;
Timeout = options.Timeout;
if (options.Timeout > 0)
Timeout = options.Timeout;
Prefix = options.Prefix;

if (!options.Configuration.IsNullOrEmpty())
Expand Down

0 comments on commit e2335bc

Please sign in to comment.