mirror of
https://github.com/gofiber/fiber.git
synced 2025-02-23 19:23:48 +00:00
Fix magic number on cache middleware
This commit is contained in:
parent
939a65c9d7
commit
a430c5aa77
5
middleware/cache/cache.go
vendored
5
middleware/cache/cache.go
vendored
@ -22,10 +22,13 @@ type Config struct {
|
||||
Expiration time.Duration
|
||||
}
|
||||
|
||||
// ConfigDefaultExpiration represents the default expiration time in minutes.
|
||||
const ConfigDefaultExpiration = 5 * time.Minute
|
||||
|
||||
// ConfigDefault is the default config
|
||||
var ConfigDefault = Config{
|
||||
Next: nil,
|
||||
Expiration: 5 * time.Minute,
|
||||
Expiration: ConfigDefaultExpiration,
|
||||
}
|
||||
|
||||
// cache is the manager to store the cached responses
|
||||
|
Loading…
x
Reference in New Issue
Block a user