MCPcopy Create free account
hub / github.com/Effect-TS/effect / set

Function set

packages/effect/src/unstable/persistence/KeyValueStore.ts:783–783  ·  view source on GitHub ↗
(key: string, value: S["Type"])

Source from the content-addressed store, hash-verified

781 )
782
783 const set = (key: string, value: S["Type"]) => Effect.flatMap(encode(value), (json) => self.set(key, json))
784
785 const modify = (key: string, f: (value: S["Type"]) => S["Type"]) =>
786 Effect.flatMap(

Callers 1

modifyFunction · 0.70

Calls 2

setMethod · 0.65
encodeFunction · 0.50

Tested by

no test coverage detected