(ctx context.Context, req *gstring.IncrByFloatRequest)
| 209 | } |
| 210 | |
| 211 | func (s *str) IncrByFloat(ctx context.Context, req *gstring.IncrByFloatRequest) (*gstring.IncrByFloatResponse, error) { |
| 212 | err := s.dbs.IncrByFloat(req.Key, req.Amount, req.Expire*1000) |
| 213 | if err != nil { |
| 214 | return &gstring.IncrByFloatResponse{Ok: true}, err |
| 215 | } |
| 216 | return &gstring.IncrByFloatResponse{Ok: true}, nil |
| 217 | } |
| 218 | |
| 219 | func (s *str) Decr(ctx context.Context, req *gstring.DecrRequest) (*gstring.DecrResponse, error) { |
| 220 | err := s.dbs.Decr(req.Key, req.Expire*1000) |
nothing calls this directly
no test coverage detected