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

Method StrLen

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

Source from the content-addressed store, hash-verified

129}
130
131func (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
141func (s *str) GetSet(ctx context.Context, req *gstring.GetSetRequest) (*gstring.GetSetResponse, error) {
142 var previousValue interface{}

Callers

nothing calls this directly

Calls 1

StrLenMethod · 0.65

Tested by

no test coverage detected