Documentation
¶
Overview ¶
Package ksyncmap : a timeout based syncmap
Index ¶
- type Map
- func (k *Map) Delete(key interface{})
- func (k *Map) Load(key interface{}) (value interface{}, ok bool)
- func (k *Map) Run()
- func (k *Map) ShowData()
- func (k *Map) ShowExpireTime()
- func (k *Map) Store(key interface{}, value interface{}, currentTime time.Time)
- func (k *Map) UpdateTime(key interface{}, currentTime time.Time)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Map ¶
type Map struct { Name string Data sync.Map Timeout int64 CheckFreq int64 ExpireTime sync.Map Verbose bool }
KSyncMap is the main struct of timeout based syncmap Data : data syncmap. Timeout : Timeout value UpdateTimestamp store last updatetime, and avoid datamap update freq.
func (*Map) ShowExpireTime ¶
func (k *Map) ShowExpireTime()
func (*Map) UpdateTime ¶
Click to show internal directories.
Click to hide internal directories.