1
0
mirror of https://github.com/gofiber/fiber.git synced 2025-02-21 06:33:11 +00:00

Change default gc interval. (#1756)

This commit is contained in:
M. Efe Çetin 2022-02-07 15:42:40 +03:00 committed by GitHub
parent 68fcd8c88f
commit 8bd1509311
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -23,7 +23,7 @@ func New() *Storage {
data: make(map[string]item),
ts: uint32(time.Now().Unix()),
}
go store.gc(10 * time.Millisecond)
go store.gc(1 * time.Second)
go store.updater(1 * time.Second)
return store
}