A consistent hash ring as a monoid