/// <summary> /// Disconnects from the current Redis instance. /// </summary> public void Disconnect() { if (redisDap == null) { return; } // Stop, dispose and delete the current redis interaction. redisDap.Close(); redisDap.Dispose(); redisDap = null; }