ConsistentHash


Object Hierarchy:

Object hierarchy for ConsistentHash

Description:

public class ConsistentHash : Object

Consistent hash ring with virtual nodes.

ConsistentHash minimizes key remapping when nodes are added or removed. It is suitable for cache sharding and distributed routing.

Example:

    var ring = new ConsistentHash ();
ring.addNode ("node-a");
ring.addNode ("node-b");

string? node = ring.getNode ("user:42");


Namespace: Vala.Distributed
Package: Valacore

Content:

Creation methods:

Methods:

Inherited Members:

All known members inherited from class GLib.Object