优化过期列表管理

This commit is contained in:
GoEdgeLab
2024-03-31 11:47:34 +08:00
parent c060215a53
commit 0c227892b0
4 changed files with 89 additions and 55 deletions

View File

@@ -58,3 +58,11 @@ func (this *IdKeyMap) DeleteKey(key string) {
func (this *IdKeyMap) Len() int {
return len(this.idKeys)
}
func (this *IdKeyMap) IdKeys() map[int64]string {
return this.idKeys
}
func (this *IdKeyMap) KeyIds() map[string]int64 {
return this.keyIds
}