- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for TestLRUWithPurge (0.05 sec)
-
tests/lru_test.go
} } // func TestExpirableMultipleClose(_ *testing.T) { // lc :=lru.NewLRU[string, string](10, nil, 0) // lc.Close() // // should not panic // lc.Close() // } func TestLRUWithPurge(t *testing.T) { var evicted []string lc := lru.NewLRU(10, func(key string, value string) { evicted = append(evicted, key, value) }, 150*time.Millisecond) k, v, ok := lc.GetOldest() if k != "" {
Registered: Sun Dec 28 09:35:17 UTC 2025 - Last Modified: Mon Sep 08 09:19:22 UTC 2025 - 10.4K bytes - Viewed (0)