[feature] Use maintenance router to serve 503 while server is starting/migrating (#3705)

* [feature] Use maintenance router to serve 503 while server is starting/migrating

* love you linter, kissies
This commit is contained in:
tobi
2025-01-29 16:57:04 +01:00
committed by GitHub
parent 61141ac232
commit d16e4fa34d
7 changed files with 271 additions and 26 deletions

View File

@@ -29,6 +29,10 @@ import (
"codeberg.org/gruf/go-cache/v3"
)
type withETagCache interface {
ETagCache() cache.Cache[string, eTagCacheEntry]
}
func newETagCache() cache.TTLCache[string, eTagCacheEntry] {
eTagCache := cache.NewTTL[string, eTagCacheEntry](0, 1000, 0)
eTagCache.SetTTL(time.Hour, false)