Skip to content

Replace deprecated Redis commands, bump to 1.0.0 - #6

Merged
jbilbo merged 2 commits into
mainfrom
replace-deprecated-redis-commands
Apr 8, 2026
Merged

Replace deprecated Redis commands, bump to 1.0.0#6
jbilbo merged 2 commits into
mainfrom
replace-deprecated-redis-commands

Conversation

@jbilbo

@jbilbo jbilbo commented Mar 27, 2026

Copy link
Copy Markdown
Member

Replace deprecated rpoplpush/brpoplpush with lmove/blmove, which were introduced in Redis 6.2. This is a breaking change for users on Redis < 6.2, hence the major version bump to 1.0.0.

Additional improvements:

  • Add frozen_string_literal pragma to source files
  • Remove unused size attr_reader from ChunkedReliableQueue
  • Use lrem count 1 instead of 0 since each item appears exactly once in the working queue, avoiding unnecessary list scans

rpoplpush/brpoplpush were deprecated in Redis 6.2 in
favour of lmove/blmove. Also add frozen_string_literal,
remove unused size attr_reader, and use lrem count 1
instead of 0 since each item appears exactly once in
the working queue.

@epaune-alt epaune-alt left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think that we should add to the README that the minimum version of Redis for version 1.0 is 6.2

@jbilbo
jbilbo requested a review from epaune-alt April 7, 2026 17:25
@jbilbo
jbilbo merged commit 3b0bcc1 into main Apr 8, 2026
7 checks passed
@jbilbo
jbilbo deleted the replace-deprecated-redis-commands branch April 8, 2026 17:59
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