• Count
                RedisKey rk = "Users".RedisProtobuf();
                int length = rk.LstCount();
    
  • Add
                RedisKey rk = "Users".RedisProtobuf();
                UserBase ub = new UserBase();
                ub.Name = "henryfan";
                ub.City = "gz";
                ub.Counrty = "cn";
                ub.Age = 18;
                rk.LstAdd(ub);
    
  • Remove
                RedisKey rk = "Users".RedisProtobuf();
                rk.LstRemove<UserBase>();
    
  • Pop
                RedisKey rk = "Users".RedisProtobuf();
                rk.LstPop<UserBase>();
    
  • Push
                RedisKey rk = "Users".RedisProtobuf();
                UserBase ub = new UserBase();
                ub.Name = "henryfan";
                ub.City = "gz";
                ub.Counrty = "cn";
                ub.Age = 18;
                rk.LstPush(ub);
    
  • SetItem
                RedisKey rk = "Users".RedisProtobuf();
                UserBase ub = new UserBase();
                ub.Name = "henryfan";
                ub.City = "gz";
                ub.Counrty = "cn";
                ub.Age = 18;
                rk.LstSetItem(1, ub);
    
  • GetItem
                RedisKey rk = "Users".RedisProtobuf();
                rk.LstGetItem<UserBase>(1);
    
  • Range
                RedisKey rk = "Users".RedisProtobuf();
                rk.LstRange<UserBase>();
                //or
                rk.LstRange<UserBase>(0, 10);
    

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

Comments

No comments yet.