C# Класс Imgix_Dotnet.Sharding.HashShardingStrategy

A hashing shard strategy. The same path will always be sent to the same shard.
Наследование: IShardingStrategy
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
GetShardId ( string path, int shardCount ) : int

Get the shard id based on the passed in path. This is done through hashing the path.

Описание методов

GetShardId() публичный Метод

Get the shard id based on the passed in path. This is done through hashing the path.
public GetShardId ( string path, int shardCount ) : int
path string The path
shardCount int How many shards are we working with
Результат int