Use redis setex instead of two commands