Add a cache layer in auth to speed up auth

This commit is contained in:
2024-03-23 00:28:27 +08:00
parent 211959167a
commit b69ac44885
11 changed files with 202 additions and 69 deletions

View File

@ -28,7 +28,7 @@ func NewServer() {
ProxyHeader: fiber.HeaderXForwardedFor,
JSONEncoder: jsoniter.ConfigCompatibleWithStandardLibrary.Marshal,
JSONDecoder: jsoniter.ConfigCompatibleWithStandardLibrary.Unmarshal,
EnablePrintRoutes: viper.GetBool("debug"),
EnablePrintRoutes: viper.GetBool("debug.print_routes"),
})
A.Use(idempotency.New())