base-golang/pkg/trace/redis.go

11 lines
448 B
Go
Raw Normal View History

2024-07-23 10:23:43 +08:00
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"` // 执行时间(单位秒)
}