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

Function unsafeTtlToExpires

packages/experimental/src/Persistence.ts:464–465  ·  view source on GitHub ↗
(clock: Clock.Clock, ttl: Option.Option<Duration.Duration>)

Source from the content-addressed store, hash-verified

462 * @since 1.0.0
463 */
464export const unsafeTtlToExpires = (clock: Clock.Clock, ttl: Option.Option<Duration.Duration>): number | null =>
465 ttl._tag === "None" ? null : clock.unsafeCurrentTimeMillis() + Duration.toMillis(ttl.value)

Callers 1

Persistence.tsFile · 0.85

Calls 1

Tested by

no test coverage detected