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

Function keyOf

packages/effect/src/ui/QueryPersistence.ts:164–164  ·  view source on GitHub ↗
(def: Def, argsKey: string)

Source from the content-addressed store, hash-verified

162 // JSON keeps prefixes apart: `["app",` doesn't start `["app/u1",…`.
163 const start = JSON.stringify([options.prefix]).slice(0, -1) + ","
164 const keyOf = (def: Def, argsKey: string) => JSON.stringify([options.prefix, def.name, argsKey])
165 return Layer.effect(
166 queryCore.Persistence,
167 Effect.gen(function*() {

Callers 1

layerKvsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected