1.

Give An Example Of Inserting Bulk Records To Redis In C#?

Answer»

Let us first create a model :

public CLASS Student
{
public INT STUDENTID { get; set; }
public string STUDENTNAME { get; set; }
public string Gender { get; set; }
public string DOB { get; set; }
}


Next create Redis Connector:
public class RedisConnector
{
static IDatabase GetRedisInstance()
{
return
ConnectionMultiplexer
.Connect("localhost")
.GetDatabase();
}
}

Let us first create a model :

public class Student
{
public int StudentID { get; set; }
public string StudentName { get; set; }
public string Gender { get; set; }
public string DOB { get; set; }
}


Next create Redis Connector:
public class RedisConnector
{
static IDatabase GetRedisInstance()
{
return
ConnectionMultiplexer
.Connect("localhost")
.GetDatabase();
}
}



Discussion

No Comment Found