DBIx::DBHResolver::Strategy::Remainder - Key based sharding strategy.
use DBIx::DBHResolver; DBIx::DBHResolver->load('/path/to/config.yaml'); my $odd_number = 7; my $conn_info = DBIx::DBHResolver->connect_info('MASTER', +{ strategy => 'Remainder', key => $odd_number });
DBIx::DBHResolver::Strategy::Remainder is key based sharding strategy depends on remainder divided key by number of nodes.
Kosuke Arisawa <arisawa@gmail.com>
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install DBIx::DBHResolver, copy and paste the appropriate command in to your terminal.
cpanm
cpanm DBIx::DBHResolver
CPAN shell
perl -MCPAN -e shell install DBIx::DBHResolver
For more information on module installation, please visit the detailed CPAN module installation guide.