1
0
mirror of https://github.com/redis/go-redis.git synced 2025-06-02 08:21:36 +03:00

docs: clarify XInfoGroup.Lag field behavior

This commit is contained in:
ofekshenawa 2025-05-21 10:12:04 +03:00
parent 68349f4e73
commit a1f128fc3d

View File

@ -2104,7 +2104,9 @@ type XInfoGroup struct {
Pending int64 Pending int64
LastDeliveredID string LastDeliveredID string
EntriesRead int64 EntriesRead int64
Lag int64 // Lag represents the number of pending messages in the stream not yet
// delivered to this consumer group. Returns -1 when the lag cannot be determined.
Lag int64
} }
var _ Cmder = (*XInfoGroupsCmd)(nil) var _ Cmder = (*XInfoGroupsCmd)(nil)