1
0
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:
Konstantinos Lypitkas 2020-09-30 23:34:18 +03:00
parent 939a65c9d7
commit a430c5aa77

View File

@ -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