1234567891011121314151617 |
- package handler
- import (
- "GtDataStore/app/model"
- "testing"
- "time"
- )
- func TestEventBindCacheMap_SetCache(t *testing.T) {
- eventBindCacheTable.SetCache("xxxx", make([]model.DcEventBind, 5), time.Now().Add(10*time.Second))
- for {
- time.Sleep(1 * time.Second)
- t.Log(eventBindCacheTable.GetCache("xxxx"))
- }
- }
|