public void Rollback() { if (redisClient.CurrentTransaction == null) { throw new InvalidOperationException("There is no current transaction to Rollback"); } redisClient.CurrentTransaction = null; redisClient.ClearTypeIdsRegisteredDuringTransaction(); redisClient.Discard(); }