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

Function makeEntryIdUnsafe

packages/effect/src/unstable/eventlog/EventJournal.ts:249–250  ·  view source on GitHub ↗
(options: { msecs?: number } = {})

Source from the content-addressed store, hash-verified

247 * @since 4.0.0
248 */
249export const makeEntryIdUnsafe = (options: { msecs?: number } = {}): EntryId =>
250 Uuid.v7Bytes(options.msecs ?? DateTime.nowUnsafe().epochMilliseconds) as EntryId
251
252/**
253 * Extracts the millisecond timestamp encoded in a UUID v7 `EntryId`.

Callers 4

makeWriteFunction · 0.90
groupCompactionFunction · 0.90
writeFunction · 0.85
makeIndexedDbFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected