Skip to content

chore: remove deprecated redis call#48

Open
aristotelesbr wants to merge 4 commits intoWeTransfer:masterfrom
aristotelesbr:chore-remove-deprecated-redis-call
Open

chore: remove deprecated redis call#48
aristotelesbr wants to merge 4 commits intoWeTransfer:masterfrom
aristotelesbr:chore-remove-deprecated-redis-call

Conversation

@aristotelesbr
Copy link
Copy Markdown

This PR removes the redis.replicate_commands() call from the Lua scripts to ensure compatibility with newer Redis versions.

This function was originally required to enable effects replication, but since Redis 5.0 this behavior is already the default. It later became deprecated in Redis 7.0, and can now cause errors in more recent releases like 7.2+.

Removing it does not change the behavior for supported Redis versions (≥ 5.0), but prevents issues when running on newer versions.

This Lua command was required for Redis < 5.0 to enable effects replication\nin scripts that mix reads and writes. Since Redis 5.0 this is the default\nbehavior. The call is a no-op in Redis 5/6/7.0, deprecated in 7.1, and\nerrors in Redis 7.2+.
Same change as the previous commit, applied to the throttle Lua script.\nRequired for Redis 7.2+ compatibility.
redis gem 2.x (last release 2015) and 3.x (last release 2018) are\nno longer maintained. The new floor aligns with the implicit Redis\nserver 5.0+ requirement after removing replicate_commands().
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.

1 participant