mirror of
https://github.com/gofiber/storage.git
synced 2025-12-24 13:29:30 +08:00
Merge pull request #993 from gofiber/rueidis-cachettl
Increase default CacheTTL for Rueidis Driver
This commit is contained in:
@@ -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,
|
||||
}
|
||||
```
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user