Open movsb opened 4 months ago
测试代码:
package main import ( "fmt" "time" "github.com/phuslu/lru" ) func main() { cache := lru.NewTTLCache[int, int](1024) for i := 0; i < 1000; i++ { cache.Set(i, i, time.Hour) } fmt.Println(cache.Len()) }
运行输出:
tests (main) → go run main.go 999
期待输出 1000.
cache.Set(0,0,time.Hour) not work
I am interested this issue and will take some time to investigate it, hope I can get the root cause, but it would be better if we get some suggestions for @phuslu.
测试代码:
运行输出:
期待输出 1000.