Documentation ¶
Index ¶
Constants ¶
View Source
const DelayExpireDuration = time.Minute * 15
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LocalLockManager ¶
type LocalLockManager struct {
// contains filtered or unexported fields
}
func NewLocalLockManager ¶
func NewLocalLockManager() *LocalLockManager
func (*LocalLockManager) Cleanup ¶
func (llm *LocalLockManager) Cleanup()
func (*LocalLockManager) Len ¶
func (llm *LocalLockManager) Len() int
func (*LocalLockManager) Lock ¶
func (llm *LocalLockManager) Lock(key string, expiredTime time.Time)
func (*LocalLockManager) UnLock ¶
func (llm *LocalLockManager) UnLock(key string)
Click to show internal directories.
Click to hide internal directories.