MCPcopy Index your code
hub / github.com/FunctionStream/function-stream / PutState

Method PutState

fs/statestore/pebble.go:63–69  ·  view source on GitHub ↗
(key string, value []byte)

Source from the content-addressed store, hash-verified

61}
62
63func (s *PebbleStateStore) PutState(key string, value []byte) error {
64 s.log.Debug("PutState", slog.String("key", key))
65 if err := s.db.Set([]byte(key), value, pebble.NoSync); err != nil {
66 return err
67 }
68 return nil
69}
70
71func (s *PebbleStateStore) GetState(key string) ([]byte, error) {
72 s.log.Debug("GetState", slog.String("key", key))

Callers

nothing calls this directly

Calls 3

DebugMethod · 0.80
StringMethod · 0.45
SetMethod · 0.45

Tested by

no test coverage detected