MCPcopy
hub / github.com/prisma/prisma / set

Method set

packages/client-common/src/Cache.ts:11–13  ·  view source on GitHub ↗
(key: K, value: V)

Source from the content-addressed store, hash-verified

9 }
10
11 set(key: K, value: V): void {
12 this._map.set(key, { value })
13 }
14
15 getOrCreate(key: K, create: () => V): V {
16 const cached = this._map.get(key)

Callers 15

getOrCreateMethod · 0.95
constructorMethod · 0.80
defaultProxyHandlersFunction · 0.80
setFunction · 0.80
mapKeysToLayersFunction · 0.80
getSingleMethod · 0.80
setSingleMethod · 0.80
getBatchMethod · 0.80
setBatchMethod · 0.80

Calls

no outgoing calls

Tested by 1

mainFunction · 0.64