MCPcopy Create free account
hub / github.com/dbProjectRED/redimo.go / XID

TypeAlias XID

streams.go:25–25  ·  view source on GitHub ↗

XID holds a stream item ID, and consists of a timestamp (one second resolution) and a sequence number. Most code will not need to generate XIDs – using XAutoID with XADD is the most common usage. But if you do need to generate XIDs for insertion with XADD, the NewXID methods creates a complete XID.

Source from the content-addressed store, hash-verified

23// because without it none of the items in the last second of the range will match – you need
24// the last possible sequence number in the last second of the range, which is what the Last() method provides.
25type XID string
26
27var ErrXGroupNotInitialized = errors.New("consumer group not initialized with XGROUP")
28

Callers 7

NewXIDFunction · 0.85
FirstMethod · 0.85
LastMethod · 0.85
parsePendingItemFunction · 0.85
xGroupCursorGetMethod · 0.85
parseStreamItemFunction · 0.85
XTRIMMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected