|
@ -59,7 +59,7 @@ func (m *GetRequest) GetKey() string { |
|
|
type SetRequest struct { |
|
|
type SetRequest struct { |
|
|
Key *string `protobuf:"bytes,1,opt,name=key" json:"key,omitempty"` |
|
|
Key *string `protobuf:"bytes,1,opt,name=key" json:"key,omitempty"` |
|
|
Value *string `protobuf:"bytes,2,opt,name=value" json:"value,omitempty"` |
|
|
Value *string `protobuf:"bytes,2,opt,name=value" json:"value,omitempty"` |
|
|
Ttl *uint64 `protobuf:"varint,3,opt,name=ttl" json:"ttl,omitempty"` |
|
|
|
|
|
|
|
|
Ttl *int64 `protobuf:"varint,3,opt,name=ttl" json:"ttl,omitempty"` |
|
|
XXX_unrecognized []byte `json:"-"` |
|
|
XXX_unrecognized []byte `json:"-"` |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
@ -81,7 +81,7 @@ func (m *SetRequest) GetValue() string { |
|
|
return "" |
|
|
return "" |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
func (m *SetRequest) GetTtl() uint64 { |
|
|
|
|
|
|
|
|
func (m *SetRequest) GetTtl() int64 { |
|
|
if m != nil && m.Ttl != nil { |
|
|
if m != nil && m.Ttl != nil { |
|
|
return *m.Ttl |
|
|
return *m.Ttl |
|
|
} |
|
|
} |
|
@ -190,7 +190,7 @@ func (m *HDelRequest) GetField() string { |
|
|
// 有效期
|
|
|
// 有效期
|
|
|
type SetExpireRequest struct { |
|
|
type SetExpireRequest struct { |
|
|
Key *string `protobuf:"bytes,1,opt,name=key" json:"key,omitempty"` |
|
|
Key *string `protobuf:"bytes,1,opt,name=key" json:"key,omitempty"` |
|
|
Expire *uint64 `protobuf:"varint,2,opt,name=expire" json:"expire,omitempty"` |
|
|
|
|
|
|
|
|
Expire *int64 `protobuf:"varint,2,opt,name=expire" json:"expire,omitempty"` |
|
|
XXX_unrecognized []byte `json:"-"` |
|
|
XXX_unrecognized []byte `json:"-"` |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
@ -205,7 +205,7 @@ func (m *SetExpireRequest) GetKey() string { |
|
|
return "" |
|
|
return "" |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
func (m *SetExpireRequest) GetExpire() uint64 { |
|
|
|
|
|
|
|
|
func (m *SetExpireRequest) GetExpire() int64 { |
|
|
if m != nil && m.Expire != nil { |
|
|
if m != nil && m.Expire != nil { |
|
|
return *m.Expire |
|
|
return *m.Expire |
|
|
} |
|
|
} |
|
@ -248,15 +248,15 @@ func (m *SetResponse) GetRet() string { |
|
|
|
|
|
|
|
|
// 删除key响应结构
|
|
|
// 删除key响应结构
|
|
|
type DelResponse struct { |
|
|
type DelResponse struct { |
|
|
Ret *uint64 `protobuf:"varint,1,opt,name=ret" json:"ret,omitempty"` |
|
|
|
|
|
XXX_unrecognized []byte `json:"-"` |
|
|
|
|
|
|
|
|
Ret *int64 `protobuf:"varint,1,opt,name=ret" json:"ret,omitempty"` |
|
|
|
|
|
XXX_unrecognized []byte `json:"-"` |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
func (m *DelResponse) Reset() { *m = DelResponse{} } |
|
|
func (m *DelResponse) Reset() { *m = DelResponse{} } |
|
|
func (m *DelResponse) String() string { return proto.CompactTextString(m) } |
|
|
func (m *DelResponse) String() string { return proto.CompactTextString(m) } |
|
|
func (*DelResponse) ProtoMessage() {} |
|
|
func (*DelResponse) ProtoMessage() {} |
|
|
|
|
|
|
|
|
func (m *DelResponse) GetRet() uint64 { |
|
|
|
|
|
|
|
|
func (m *DelResponse) GetRet() int64 { |
|
|
if m != nil && m.Ret != nil { |
|
|
if m != nil && m.Ret != nil { |
|
|
return *m.Ret |
|
|
return *m.Ret |
|
|
} |
|
|
} |
|
@ -265,15 +265,15 @@ func (m *DelResponse) GetRet() uint64 { |
|
|
|
|
|
|
|
|
// 设置key响应结构
|
|
|
// 设置key响应结构
|
|
|
type HSetResponse struct { |
|
|
type HSetResponse struct { |
|
|
Ret *uint64 `protobuf:"varint,1,opt,name=ret" json:"ret,omitempty"` |
|
|
|
|
|
XXX_unrecognized []byte `json:"-"` |
|
|
|
|
|
|
|
|
Ret *int64 `protobuf:"varint,1,opt,name=ret" json:"ret,omitempty"` |
|
|
|
|
|
XXX_unrecognized []byte `json:"-"` |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
func (m *HSetResponse) Reset() { *m = HSetResponse{} } |
|
|
func (m *HSetResponse) Reset() { *m = HSetResponse{} } |
|
|
func (m *HSetResponse) String() string { return proto.CompactTextString(m) } |
|
|
func (m *HSetResponse) String() string { return proto.CompactTextString(m) } |
|
|
func (*HSetResponse) ProtoMessage() {} |
|
|
func (*HSetResponse) ProtoMessage() {} |
|
|
|
|
|
|
|
|
func (m *HSetResponse) GetRet() uint64 { |
|
|
|
|
|
|
|
|
func (m *HSetResponse) GetRet() int64 { |
|
|
if m != nil && m.Ret != nil { |
|
|
if m != nil && m.Ret != nil { |
|
|
return *m.Ret |
|
|
return *m.Ret |
|
|
} |
|
|
} |
|
@ -282,15 +282,15 @@ func (m *HSetResponse) GetRet() uint64 { |
|
|
|
|
|
|
|
|
// 设置key有效期
|
|
|
// 设置key有效期
|
|
|
type SetExpireResponse struct { |
|
|
type SetExpireResponse struct { |
|
|
Ret *uint64 `protobuf:"varint,1,opt,name=ret" json:"ret,omitempty"` |
|
|
|
|
|
XXX_unrecognized []byte `json:"-"` |
|
|
|
|
|
|
|
|
Ret *int64 `protobuf:"varint,1,opt,name=ret" json:"ret,omitempty"` |
|
|
|
|
|
XXX_unrecognized []byte `json:"-"` |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
func (m *SetExpireResponse) Reset() { *m = SetExpireResponse{} } |
|
|
func (m *SetExpireResponse) Reset() { *m = SetExpireResponse{} } |
|
|
func (m *SetExpireResponse) String() string { return proto.CompactTextString(m) } |
|
|
func (m *SetExpireResponse) String() string { return proto.CompactTextString(m) } |
|
|
func (*SetExpireResponse) ProtoMessage() {} |
|
|
func (*SetExpireResponse) ProtoMessage() {} |
|
|
|
|
|
|
|
|
func (m *SetExpireResponse) GetRet() uint64 { |
|
|
|
|
|
|
|
|
func (m *SetExpireResponse) GetRet() int64 { |
|
|
if m != nil && m.Ret != nil { |
|
|
if m != nil && m.Ret != nil { |
|
|
return *m.Ret |
|
|
return *m.Ret |
|
|
} |
|
|
} |
|
|