• SetField
                RedisKey rk = "HENRY_INFO".RedisJson();
                UserBase ub = new UserBase();
                ub.Name = "henryfan";
                ub.City = "gz";
                ub.Counrty = "cn";
                ub.Age = 10;
                Contact contact = new Contact();
                contact.EMail = "hernyfan@msn.com";
                contact.QQ = "28304340";
                contact.Phone = "13660223497";
                rk.SetField(ub,contact);
    
  • GetField
    RedisKey rk = "HENRY_INFO".RedisJson();
    IList<object> data = rk.GetFields<UserBase, Contact>();
    UserBase ub=(UserBase)data[0];
    Contact ct = (contact)data[1];
    

Last edited Aug 17, 2013 at 9:39 AM by smarkhenry, version 2

Comments

No comments yet.