NewWithCustomHash creates a new ShardLockMaps with custom hash function. Use this when you need a different hash distribution strategy.
(hash IHash)
| 63 | // NewWithCustomHash creates a new ShardLockMaps with custom hash function. |
| 64 | // Use this when you need a different hash distribution strategy. |
| 65 | func NewWithCustomHash(hash IHash) ShardLockMaps { |
| 66 | return createShardLockMaps(hash, DefaultShardCount) |
| 67 | } |
| 68 | |
| 69 | // NewWithCustomHashAndCount creates a new ShardLockMaps with custom hash function and shard count. |
| 70 | // This provides maximum flexibility for performance tuning. |
nothing calls this directly
no test coverage detected