|
|
@ -56,6 +56,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 *uint64 `protobuf:"varint,3,opt,name=ttl" json:"ttl,omitempty"` |
|
|
|
XXX_unrecognized []byte `json:"-"` |
|
|
|
} |
|
|
|
|
|
|
@ -77,6 +78,13 @@ func (m *SetRequest) GetValue() string { |
|
|
|
return "" |
|
|
|
} |
|
|
|
|
|
|
|
func (m *SetRequest) GetTtl() uint64 { |
|
|
|
if m != nil && m.Ttl != nil { |
|
|
|
return *m.Ttl |
|
|
|
} |
|
|
|
return 0 |
|
|
|
} |
|
|
|
|
|
|
|
type DelRequest struct { |
|
|
|
Key *string `protobuf:"bytes,1,opt,name=key" json:"key,omitempty"` |
|
|
|
XXX_unrecognized []byte `json:"-"` |
|
|
|