save server in redis and get the next number of a server type for a network