Skip to content

Commit

Permalink
调用用例
Browse files Browse the repository at this point in the history
  • Loading branch information
steden committed Jul 27, 2023
1 parent e3d19fd commit 15438d5
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions test/cacheInMemory_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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")
Expand Down

0 comments on commit 15438d5

Please sign in to comment.