public void UpdateUser(User user)
 {
     using (var redisClient = RedisManager.GetClient())
     {
         var redisUsers = redisClient.As<User>();
         redisUsers.Store(user);
     }
 }
 public long AddUser(string name, int goal)
 {
     using (var redisClient = RedisManager.GetClient())
     {
         var redisUsers = redisClient.As<User>();
         var user = new User() { Name = name, Goal = goal, Id = redisUsers.GetNextSequence() };
         redisUsers.Store(user);
         return user.Id;
     }
 }