mirror of
https://github.com/TeaOSLab/EdgeNode.git
synced 2026-02-07 18:05:36 +08:00
优化代码
This commit is contained in:
@@ -2,13 +2,9 @@
|
||||
|
||||
package expires
|
||||
|
||||
import "sync"
|
||||
|
||||
type IdKeyMap struct {
|
||||
idKeys map[int64]string // id => key
|
||||
keyIds map[string]int64 // key => id
|
||||
|
||||
locker sync.Mutex
|
||||
}
|
||||
|
||||
func NewIdKeyMap() *IdKeyMap {
|
||||
|
||||
Reference in New Issue
Block a user