Skip to content

Commit

Permalink
Merge pull request #993 from gofiber/rueidis-cachettl
Browse files Browse the repository at this point in the history
Increase default CacheTTL for Rueidis Driver
  • Loading branch information
ReneWerner87 authored Sep 18, 2023
2 parents f8afad5 + 946562e commit aeb7a24
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions rueidis/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ type Config struct {

// CacheTTL TTL
//
// Optional. Default is time.Second
// Optional. Default is time.Minute
CacheTTL time.Duration
}
```
Expand All @@ -207,6 +207,6 @@ var ConfigDefault = Config{
DisableCache: false,
AlwaysPipelining: true,
Reset: false,
CacheTTL: time.Second,
CacheTTL: time.Minute,
}
```
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 aeb7a24

Please sign in to comment.