NAME

MooseX::ConsistentHash::RoleInterface - abstract interface for MooseX::ConsistentHash::* Version 0.01

DESCRIPTION

If you want to add your own MooseX::ConsistentHash::* module, which will be available for use in MooseX::ConsistentHash, then you should use this class as a role.

Abstaract methods

add_option($option)

option is a MooseX::ConsistentHash::Option object. $option->identificator and $option->weight are all you need.

get_option($thing)

'thing' is a string for which your module should return the appropriate option. You must return $option->identificator

EXAMPLE

SEE ALSO

AUTHOR

Sivirinov Ivan, <catamoose at yandex.ru>

COPYRIGHT AND LICENSE

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.10 or, at your option, any later version of Perl 5 you may have available.