Generic consistent hash algorithm handler for rings