MCPcopy Index your code
hub / github.com/Effect-TS/effect / getStore

Function getStore

packages/experimental/src/Persistence.ts:329–336  ·  view source on GitHub ↗
(storeId: string)

Source from the content-addressed store, hash-verified

327 () => {
328 const stores = new Map<string, Map<string, readonly [unknown, expires: number | null]>>()
329 const getStore = (storeId: string) => {
330 let store = stores.get(storeId)
331 if (store === undefined) {
332 store = new Map<string, readonly [unknown, expires: number | null]>()
333 stores.set(storeId, store)
334 }
335 return store
336 }
337 return BackingPersistence.of({
338 [BackingPersistenceTypeId]: BackingPersistenceTypeId,
339 make: (storeId) =>

Callers 1

Persistence.tsFile · 0.85

Calls 2

getMethod · 0.65
setMethod · 0.65

Tested by

no test coverage detected