跳转到内容
简体中文

hashShardId

此内容尚不支持你的语言。

hashShardId(entityId, numShards): number

Defined in: src/cluster/sharding/ShardAllocator.ts:42

Helper used by the default ShardRegion to map an entityId to a shard. Uses a stable string hash; callers may supply their own extractShardId.

string

number

number