MCPcopy Create free account
hub / github.com/ByteStorage/FlyDB / Append

Method Append

engine/grpc/service/string.go:187–193  ·  view source on GitHub ↗
(ctx context.Context, req *gstring.AppendRequest)

Source from the content-addressed store, hash-verified

185}
186
187func (s *str) Append(ctx context.Context, req *gstring.AppendRequest) (*gstring.AppendResponse, error) {
188 err := s.dbs.Append(req.Key, req.Value, req.Expire*1000)
189 if err != nil {
190 return &gstring.AppendResponse{}, err
191 }
192 return &gstring.AppendResponse{Ok: true}, nil
193}
194
195func (s *str) Incr(ctx context.Context, req *gstring.IncrRequest) (*gstring.IncrResponse, error) {
196 err := s.dbs.Incr(req.Key, req.Expire*1000)

Callers

nothing calls this directly

Calls 1

AppendMethod · 0.65

Tested by

no test coverage detected