Skip to content

Use sadd? srem? when available to not trigger deprecation warning

Latest
Compare
Choose a tag to compare
@omaik omaik released this 12 May 11:35
bc42ee9
Use sadd? srem? when available to not trigger deprecation warning on …

…Redis > 4.2 (#19)

When using redis 4.8+ and still calling sadd/srem - redis spits deprecation warning that these methods soon will return integer instead of boolean.

This change not only puts unnecessary log lines - but also makes gem incompatible with redis 5 as we were checking fact of removing the job.

At some point - we should increase min supported redis version and remove the workaround