NewTimeXID creates an XID with the given timestamp. To get the first or the last XID in this timestamp, use the First() or the Last() methods. This is especially important when using constructed XIDs inside a range call like XRANGE or XREVRANGE.
(ts time.Time)
| 46 | // XID in this timestamp, use the First() or the Last() methods. This is especially |
| 47 | // important when using constructed XIDs inside a range call like XRANGE or XREVRANGE. |
| 48 | func NewTimeXID(ts time.Time) XID { |
| 49 | return NewXID(ts, 0) |
| 50 | } |
| 51 | |
| 52 | func (xid XID) String() string { |
| 53 | return string(xid) |