Merge pull request #993 from gofiber/rueidis-cachettl

Increase default CacheTTL for Rueidis Driver
This commit is contained in:
RW
2023-09-18 07:48:40 +02:00
committed by GitHub
2 changed files with 4 additions and 4 deletions

View File

@@ -183,7 +183,7 @@ type Config struct {
// CacheTTL TTL
//
// Optional. Default is time.Second
// Optional. Default is time.Minute
CacheTTL time.Duration
}
```
@@ -207,6 +207,6 @@ var ConfigDefault = Config{
DisableCache: false,
AlwaysPipelining: true,
Reset: false,
CacheTTL: time.Second,
CacheTTL: time.Minute,
}
```

View File

@@ -97,7 +97,7 @@ type Config struct {
// CacheTTL TTL
//
// Optional. Default is time.Second
// Optional. Default is time.Minute
CacheTTL time.Duration
}
@@ -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