For example, if I have a model called Customer
public class Customer
{
public string FirstName { get; set; }
public string LastName { get; set; }
public string Address1 { get; set; }
public string City { get; set; }
public string State { get; set; }
}
Example:
var customers = new List<Customer>();
How would I added a List of Customer? How would I do this?
using (var redis = ConnectionMultiplexer.Connect(this.redisServer))
{
var db = redis.GetDatabase();
db.SetAdd(key, ?????);
}
I think SetAdd is the right method, but I can't see how to get my generic list of Customer (i.e. List into the format of RedisValue.