|
|
@ -59,7 +59,7 @@ func (m *GetRequest) GetKey() string { |
|
|
|
type SetRequest struct { |
|
|
|
Key *string `protobuf:"bytes,1,opt,name=key" json:"key,omitempty"` |
|
|
|
Value *string `protobuf:"bytes,2,opt,name=value" json:"value,omitempty"` |
|
|
|
Ttl *string `protobuf:"bytes,3,opt,name=ttl" json:"ttl,omitempty"` |
|
|
|
Ttl *uint64 `protobuf:"varint,3,opt,name=ttl" json:"ttl,omitempty"` |
|
|
|
XXX_unrecognized []byte `json:"-"` |
|
|
|
} |
|
|
|
|
|
|
@ -81,11 +81,11 @@ func (m *SetRequest) GetValue() string { |
|
|
|
return "" |
|
|
|
} |
|
|
|
|
|
|
|
func (m *SetRequest) GetTtl() string { |
|
|
|
func (m *SetRequest) GetTtl() uint64 { |
|
|
|
if m != nil && m.Ttl != nil { |
|
|
|
return *m.Ttl |
|
|
|
} |
|
|
|
return "" |
|
|
|
return 0 |
|
|
|
} |
|
|
|
|
|
|
|
type DelRequest struct { |
|
|
|