Hacker News new | ask | show | jobs
by ryanschneider 3182 days ago
Supporting `MAXSIZE` as well as `MAXLEN` on `XADD` would also handle a nice Kafka feature (the ability to define your log size in either number of messages or size on disk).

Something like: `XADD MAXSIZE ~ 2147484000 * foo bar` to cap the stream at 2GB + 1 node.

1 comments

And if ids are timestamps, maybe we can define it as MAXTIME as well.