feat: add memory cache

This commit is contained in:
zhaoyupeng
2025-07-15 18:40:13 +08:00
parent 127c57dc3a
commit 868b959c6f
7 changed files with 239 additions and 29 deletions

7
go.mod
View File

@ -1,10 +1,11 @@
module gitea.loveuer.com/yizhisec/packages
go 1.23
go 1.23.0
toolchain go1.24.3
require (
github.com/dgraph-io/ristretto/v2 v2.2.0
github.com/fatih/color v1.18.0
github.com/gin-gonic/gin v1.10.1
github.com/glebarez/sqlite v1.11.0
@ -23,7 +24,7 @@ require (
filippo.io/edwards25519 v1.1.0 // indirect
github.com/bytedance/sonic v1.11.6 // indirect
github.com/bytedance/sonic/loader v0.1.1 // indirect
github.com/cespare/xxhash/v2 v2.1.1 // indirect
github.com/cespare/xxhash/v2 v2.3.0 // indirect
github.com/cloudwego/base64x v0.1.4 // indirect
github.com/cloudwego/iasm v0.2.0 // indirect
github.com/dgryski/go-rendezvous v0.0.0-20200823014737-9f7001d12a5f // indirect
@ -60,7 +61,7 @@ require (
golang.org/x/arch v0.8.0 // indirect
golang.org/x/net v0.27.0 // indirect
golang.org/x/sync v0.11.0 // indirect
golang.org/x/sys v0.30.0 // indirect
golang.org/x/sys v0.31.0 // indirect
golang.org/x/text v0.22.0 // indirect
google.golang.org/protobuf v1.34.1 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect