This commit is contained in:
Kevin Wan
2022-04-04 22:13:08 +08:00
committed by GitHub
parent faad6e27e3
commit 8472415472
2 changed files with 7 additions and 2 deletions

View File

@@ -18,7 +18,7 @@ func TestCacheSet(t *testing.T) {
assert.Nil(t, err)
cache.Set("first", "first element")
cache.Set("second", "second element")
cache.SetWithExpire("second", "second element", time.Second*3)
value, ok := cache.Get("first")
assert.True(t, ok)