flake8-pie icon indicating copy to clipboard operation
flake8-pie copied to clipboard

redis-set-expire

Open sbdchd opened this issue 4 years ago • 0 comments

# err
redis.set(redis_key, data)
redis.expire(redis_key, timedelta(days=1))

# ok
redis.set(redis_key, data, ex=timedelta(days=1))

Note: I think we'd want to ignore the name of the client, and look for methods .set and .expire that are next to each other

https://redis.io/commands/set

sbdchd avatar Aug 10 '21 20:08 sbdchd