disconnect redis after an operation