C# 클래스 Imgix_Dotnet.Sharding.HashShardingStrategy

A hashing shard strategy. The same path will always be sent to the same shard.
상속: IShardingStrategy
파일 보기 프로젝트 열기: estei/Imgix-Dotnet 1 사용 예제들

공개 메소드들

메소드 설명
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