From 15438d54af92b14b17a24fc1c489b52d71d2329b Mon Sep 17 00:00:00 2001 From: steden <1470804@qq.com> Date: Thu, 27 Jul 2023 15:35:23 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E7=94=A8=E7=94=A8=E4=BE=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- test/cacheInMemory_test.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/test/cacheInMemory_test.go b/test/cacheInMemory_test.go index 4d31c5f..aae1a98 100644 --- a/test/cacheInMemory_test.go +++ b/test/cacheInMemory_test.go @@ -2,7 +2,6 @@ package test import ( "github.com/farseer-go/cache" - "github.com/farseer-go/cache/eumExpiryType" "github.com/farseer-go/cacheMemory" "github.com/farseer-go/collections" "github.com/farseer-go/fs" @@ -162,8 +161,7 @@ func TestCacheInMemory_Exists(t *testing.T) { func TestCacheInMemory_Ttl(t *testing.T) { cacheMemory.SetProfiles[po]("test7", "Name", func(op *cache.Op) { - op.ExpiryType = eumExpiryType.SlidingExpiration - op.Expiry = 200 * time.Millisecond + op.SlidingExpiration(200 * time.Millisecond) }) cacheManage := container.Resolve[cache.ICacheManage[po]]("test7")