mirror of
https://gitee.com/dromara/mayfly-go
synced 2025-11-04 00:10:25 +08:00
feat: 新增pgsql数据操作&redis集群操作
This commit is contained in:
@@ -35,8 +35,12 @@ func InitRedisRouter(router *gin.RouterGroup) {
|
||||
ctx.NewReqCtxWithGin(c).Handle(rs.RedisInfo)
|
||||
})
|
||||
|
||||
redis.GET(":id/cluster-info", func(c *gin.Context) {
|
||||
ctx.NewReqCtxWithGin(c).Handle(rs.ClusterInfo)
|
||||
})
|
||||
|
||||
// 获取指定redis keys
|
||||
redis.GET(":id/scan/:cursor/:count", func(c *gin.Context) {
|
||||
redis.POST(":id/scan", func(c *gin.Context) {
|
||||
ctx.NewReqCtxWithGin(c).Handle(rs.Scan)
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user