This project is read-only.
  • object
                RedisKey rk = "henry_json".RedisJson();
                UserBase ub = new UserBase();
                ub.Name = "henryfan";
                ub.City = "gz";
                ub.Counrty = "cn";
                ub.Age = 10;
                rk.Set(ub);
    
  • multi-object
                RedisKey keys = new string[] { "henry_info", "henry_contact" }.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";
                keys.SetValues(new object[] { ub, contact });
                IList<object> data = keys.Get<UserBase, Contact>();
    

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

Comments

No comments yet.