MCPcopy Create free account
hub / github.com/QuantumNous/new-api / Encode

Method Encode

pkg/cachex/codec.go:31–31  ·  view source on GitHub ↗
(v string)

Source from the content-addressed store, hash-verified

29type StringCodec struct{}
30
31func (c StringCodec) Encode(v string) (string, error) { return v, nil }
32func (c StringCodec) Decode(s string) (string, error) { return s, nil }
33
34type JSONCodec[V any] struct{}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected