feat: msg local cache

This commit is contained in:
withchao
2024-01-08 20:36:41 +08:00
parent 3d77c1c8cf
commit 938622b1fe
6 changed files with 174 additions and 25 deletions
+24
View File
@@ -0,0 +1,24 @@
package link
import (
"testing"
)
func TestName(t *testing.T) {
v := New(1)
//v.Link("a:1", "b:1", "c:1", "d:1")
v.Link("a:1", "b:1", "c:1")
v.Link("z:1", "b:1")
//v.DelKey("a:1")
v.Del("z:1")
t.Log(v.slots[0].data)
for k, v := range v.slots[0].data {
t.Log(k, v)
}
}