feat: cache errored request

This commit is contained in:
Simon Ding
2024-08-13 11:05:46 +08:00
parent 32914344d1
commit b487c81865
2 changed files with 22 additions and 13 deletions

View File

@@ -5,4 +5,4 @@ import (
"time"
)
var cc = cache.NewCache[string, Response](time.Minute * 30)
var cc = cache.NewCache[string, *Response](time.Minute * 30)