Documentation
¶
Index ¶
- Variables
- type MapLock
- func (*MapLock) Destroy(key string)
- func (*MapLock) DestroyAll()
- func (*MapLock) Lock(key string, timeout time.Duration) (*itemLock, error)
- func (*MapLock) New() MapLocker
- func (*MapLock) Once() MapLocker
- func (*MapLock) Set(key string, val any) error
- func (*MapLock) SetMany(items map[string]any) (err error)
- func (*MapLock) Try(key string) error
- type MapLocker
Constants ¶
This section is empty.
Variables ¶
View Source
var APP struct { MapLock MapLock }
Functions ¶
This section is empty.
Types ¶
type MapLock ¶
type MapLock struct {
// contains filtered or unexported fields
}
MapLock 字典锁:一个锁的集合
Click to show internal directories.
Click to hide internal directories.