(ctx context.Context, req *gstring.StrLenRequest)
| 129 | } |
| 130 | |
| 131 | func (s *str) StrLen(ctx context.Context, req *gstring.StrLenRequest) (*gstring.StrLenResponse, error) { |
| 132 | length, err := s.dbs.StrLen(req.Key) |
| 133 | if err != nil { |
| 134 | return &gstring.StrLenResponse{}, err |
| 135 | } |
| 136 | return &gstring.StrLenResponse{ |
| 137 | Length: int32(length), |
| 138 | }, nil |
| 139 | } |
| 140 | |
| 141 | func (s *str) GetSet(ctx context.Context, req *gstring.GetSetRequest) (*gstring.GetSetResponse, error) { |
| 142 | var previousValue interface{} |