Skip to content

[FEATURE] Expose maxlen configuration option#13

Merged
DmytroHavryshGoTo merged 1 commit into
mainfrom
feature/expose_maxlen
May 15, 2026
Merged

[FEATURE] Expose maxlen configuration option#13
DmytroHavryshGoTo merged 1 commit into
mainfrom
feature/expose_maxlen

Conversation

@DmytroHavryshGoTo
Copy link
Copy Markdown
Contributor

Summary

  • Make maxlen configurable on RedisStream::Publisher via the same DSL as other options (config.maxlen(200)), instead of being hard-coded to 1000.
  • Default is 100 when not set; option is optional.
  • README updated with the new option and a small cleanup (redis_url, logging_stream).

Changes

  • lib/redis_stream/configuration.rb: added max_length attribute (default 100) and maxlen(value) setter.
  • lib/redis_stream/publisher.rb: xadd now uses RedisStream.config.max_length.
  • README.md: documented maxlen, logging_stream, and switched the example to redis_url.

@DmytroHavryshGoTo DmytroHavryshGoTo requested a review from garciaf May 14, 2026 15:00
@DmytroHavryshGoTo DmytroHavryshGoTo self-assigned this May 14, 2026
@DmytroHavryshGoTo DmytroHavryshGoTo merged commit 5b5a57c into main May 15, 2026
1 check passed
@DmytroHavryshGoTo DmytroHavryshGoTo deleted the feature/expose_maxlen branch May 15, 2026 08:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants