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

Function getStore

packages/effect/src/unstable/persistence/Persistence.ts:247–254  ·  view source on GitHub ↗
(storeId: string)

Source from the content-addressed store, hash-verified

245 () => {
246 const stores = new Map<string, Map<string, readonly [object, expires: number | null]>>()
247 const getStore = (storeId: string) => {
248 let store = stores.get(storeId)
249 if (store === undefined) {
250 store = new Map<string, readonly [object, expires: number | null]>()
251 stores.set(storeId, store)
252 }
253 return store
254 }
255 return BackingPersistence.of({
256 make: (storeId) =>
257 Effect.clockWith((clock) => {

Callers 1

Persistence.tsFile · 0.85

Calls 2

getMethod · 0.65
setMethod · 0.65

Tested by

no test coverage detected