Fix for the branch 6.0: https://github.com/redis/redis/commit/5674b0057ff2903d43eaff802017eddf37c360f8