first commit
This commit is contained in:
10
pkg/trace/redis.go
Normal file
10
pkg/trace/redis.go
Normal file
@ -0,0 +1,10 @@
|
||||
package trace
|
||||
|
||||
type Redis struct {
|
||||
Timestamp string `json:"timestamp"` // 时间,格式:2006-01-02 15:04:05
|
||||
Handle string `json:"handle"` // 操作,SET/GET 等
|
||||
Key string `json:"key"` // Key
|
||||
Value string `json:"value,omitempty"` // Value
|
||||
TTL float64 `json:"ttl,omitempty"` // 超时时长(单位分)
|
||||
CostSeconds float64 `json:"cost_seconds"` // 执行时间(单位秒)
|
||||
}
|
Reference in New Issue
Block a user