Algorithm::ConsistentHash::Ketama::Bucket - A Bucket Object
my @buckets = $ketama->buckets; my $bucket = shift @buckets; $bucket->label; $bucket->weight;
This class simply represents a bucket in Algorithm::ConsistentnHash::Ketama. There are no interface to add a bucket using this object. This class is just a utility to represent this data.
Creates a new bucket object
Returns the string label for this bucket
Returns the weight of this bucket
To install Algorithm::ConsistentHash::Ketama, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Algorithm::ConsistentHash::Ketama
CPAN shell
perl -MCPAN -e shell install Algorithm::ConsistentHash::Ketama
For more information on module installation, please visit the detailed CPAN module installation guide.