MCPcopy
hub / github.com/prisma/prisma / get

Method get

packages/client-common/src/Cache.ts:7–9  ·  view source on GitHub ↗
(key: K)

Source from the content-addressed store, hash-verified

5 private _map = new Map<K, CacheEntry<V>>()
6
7 get(key: K): V | undefined {
8 return this._map.get(key)?.value
9 }
10
11 set(key: K, value: V): void {
12 this._map.set(key, { value })

Callers 15

defineDmmfPropertyFunction · 0.45
sqlMethod · 0.45
valuesMethod · 0.45
getFunction · 0.45
hasFunction · 0.45
setFunction · 0.45
getOwnPropertyDescriptorFunction · 0.45
getExistingKeysFunction · 0.45
getSingleMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected