Beetle 0.6.6.5

Rating: No reviews yet
Downloads: 366
Released: Dec 15, 2013
Updated: Dec 15, 2013 by smarkhenry
Dev status: Beta Help Icon

Recommended Download

Application Beetle.Redis.0.6.6.5
application, 245K, uploaded Dec 15, 2013 - 366 downloads

Release Notes

Support a more simple operation
            StringKey keys = new string[] { "QQ", "EMAIL" };
            string[] VALUE = new string[] { "28304340", "HENRYFAN@MSN.COM" };
            keys.SetValues(VALUE);
            IList<object> data = keys.Get<string,string>();
            Assert.AreEqual(VALUE[0], data[0]);
            Assert.AreEqual(VALUE[1], data[1]);
            //list for protobuf
            ProtobufList<UserBase> lst = "USERS";
            lst.Push(new UserBase { Name = "henry", Age = 18, City = "gz", Counrty = "cn" });
            //mapset for protobuf
            JsonMapSet map = "HENRY_INFO";
            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";
            map.Set(ub, contact);
            IList<object> data = map.Get<UserBase, Contact>();
            Assert.AreEqual(ub.Name, ((UserBase)data[0]).Name);
            Assert.AreEqual(contact.Phone, ((Contact)data[1]).Phone);
            Assert.AreEqual("henry", lst.Pop().Name);

Reviews for this release

No reviews yet for this release.