feat: redis cache layer with rule/channel caching and rate limiter

This commit is contained in:
2026-06-27 13:07:56 +08:00
parent a8e939da40
commit 3f75699431
3 changed files with 170 additions and 3 deletions
+4 -1
View File
@@ -5,11 +5,13 @@ go 1.26.2
require (
github.com/go-sql-driver/mysql v1.10.0
github.com/jmoiron/sqlx v1.4.0
github.com/redis/go-redis/v9 v9.21.0
github.com/spf13/viper v1.21.0
)
require (
filippo.io/edwards25519 v1.2.0 // indirect
github.com/cespare/xxhash/v2 v2.3.0 // indirect
github.com/fsnotify/fsnotify v1.9.0 // indirect
github.com/go-viper/mapstructure/v2 v2.4.0 // indirect
github.com/pelletier/go-toml/v2 v2.2.4 // indirect
@@ -19,7 +21,8 @@ require (
github.com/spf13/cast v1.10.0 // indirect
github.com/spf13/pflag v1.0.10 // indirect
github.com/subosito/gotenv v1.6.0 // indirect
go.uber.org/atomic v1.11.0 // indirect
go.yaml.in/yaml/v3 v3.0.4 // indirect
golang.org/x/sys v0.29.0 // indirect
golang.org/x/sys v0.30.0 // indirect
golang.org/x/text v0.28.0 // indirect
)