ShardedKV::Continuum - The continuum role
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.
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.