mirror of
https://gitee.com/dromara/mayfly-go
synced 2025-12-25 09:06:34 +08:00
feat: 数据库表操作显示表size&其他小优化
This commit is contained in:
@@ -131,6 +131,11 @@ func (r *Redis) TtlKey(rc *req.Ctx) {
|
||||
}
|
||||
}
|
||||
|
||||
func (r *Redis) MemoryUsage(rc *req.Ctx) {
|
||||
ri, key := r.checkKeyAndGetRedisConn(rc)
|
||||
rc.ResData = ri.GetCmdable().MemoryUsage(context.Background(), key).Val()
|
||||
}
|
||||
|
||||
func (r *Redis) DeleteKey(rc *req.Ctx) {
|
||||
ri, key := r.checkKeyAndGetRedisConn(rc)
|
||||
rc.ReqParam = collx.Kvs("redis", ri.Info, "key", key)
|
||||
|
||||
Reference in New Issue
Block a user