Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ShardedLock ¶
type ShardedLock struct {
// contains filtered or unexported fields
}
func NewShardedLock ¶
func NewShardedLock(lockCount int) *ShardedLock
func (*ShardedLock) Lock ¶
func (s *ShardedLock) Lock(key string)
func (*ShardedLock) RLock ¶
func (s *ShardedLock) RLock(key string)
func (*ShardedLock) RUnlock ¶
func (s *ShardedLock) RUnlock(key string)
func (*ShardedLock) Unlock ¶
func (s *ShardedLock) Unlock(key string)
Click to show internal directories.
Click to hide internal directories.