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

Method Exists

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

Source from the content-addressed store, hash-verified

233}
234
235func (s *str) Exists(ctx context.Context, req *gstring.ExistsRequest) (*gstring.ExistsResponse, error) {
236 exists, err := s.dbs.Exists(req.Key)
237 if err != nil {
238 return nil, err
239 }
240
241 return &gstring.ExistsResponse{Exists: exists}, nil
242}
243
244func (s *str) Expire(ctx context.Context, req *gstring.ExpireRequest) (*gstring.ExpireResponse, error) {
245 err := s.dbs.Expire(req.Key, req.Expire*1000)

Callers

nothing calls this directly

Calls 1

ExistsMethod · 0.65

Tested by

no test coverage detected