ShardedKV::Continuum - The continuum role
version 0.14
package ShardedKV::Continuum::MyAlgorithm; use Moose; with 'ShardedKV::Continuum'; ... implement necessary methods here ... 1;
A class that consumes this role and implements all required methods correctly can be used as a sharding algorithm for a ShardedKV.
See ShardedKV::Continuum::Ketama for an example.
Given a key name, must return the name of the shard that the key lives on.
Returns a deep copy of the object.
Given one or multiple shard specifications, adds these to the continuum.
Returns a string that could be used to recreate the continuum.
Given such a string, recreates the exact same continuum.
Returns a list of all shard/bucket names in the continuum.
ShardedKV
ShardedKV::Continuum::Ketama
ShardedKV::Continuum::StaticMapping
Steffen Mueller <smueller@cpan.org>
Nick Perez <nperez@cpan.org>
This software is copyright (c) 2013 by Steffen Mueller.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install ShardedKV, copy and paste the appropriate command in to your terminal.
cpanm
cpanm ShardedKV
CPAN shell
perl -MCPAN -e shell install ShardedKV
For more information on module installation, please visit the detailed CPAN module installation guide.