package
Version:
v0.1.18
Opens a new window with list of versions in this module.
Published: Jun 6, 2022
License: Apache-2.0
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type AutoGcMap struct {
}
AutoGcMap 因为 golang 设计 map 为了复用 key, 删除不会真正的删除, 只是软删除
func (m *AutoGcMap) Get(i interface{}) (v interface{}, exists bool)
func (m *AutoGcMap) Set(i interface{}, v interface{})
type SafeGcMap interface {
Get(interface{}) (interface{}, bool)
Set(interface{}, interface{})
Del(interface{})
Size() int
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.