Skip to content

Commit

Permalink
Update config.go
Browse files Browse the repository at this point in the history
  • Loading branch information
gaby authored Sep 16, 2023
1 parent 558ec79 commit 946562e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rueidis/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ type Config struct {

// CacheTTL TTL
//
// Optional. Default is time.Second
// Optional. Default is time.Minute
CacheTTL time.Duration
}

Expand All @@ -120,7 +120,7 @@ var ConfigDefault = Config{
DisableCache: false,
AlwaysPipelining: true,
Reset: false,
CacheTTL: time.Second,
CacheTTL: time.Minute,
}

// Helper function to set default values
Expand Down

0 comments on commit 946562e

Please sign in to comment.