public void UpdateUser(User user) { using (var redisClient = RedisManager.GetClient()) { var redisUsers = redisClient.As<User>(); return redisUsersStore(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; } }