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

Method refresh

packages/effect/src/Cache.ts:84–84  ·  view source on GitHub ↗

* Computes the value associated with the specified key, with the lookup * function, and puts it in the cache. The difference between this and * `get` method is that `refresh` triggers (re)computation of the value * without invalidating it in the cache, so any request to the associated *

(key: Key)

Source from the content-addressed store, hash-verified

82 * lookup function, disregarding the last `Error`.
83 */
84 refresh(key: Key): Effect.Effect<void, Error>
85
86 /**
87 * Associates the specified value with the specified key in the cache.

Callers 5

Resource.test.tsFile · 0.65
makeEncodedFunction · 0.65
Sharding.tsFile · 0.65

Implementers 1

CacheImplpackages/effect/src/internal/cache.ts

Calls

no outgoing calls

Tested by

no test coverage detected