- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for TestTTLEvictExpired (0.31 sec)
-
pkg/cache/ttlCache_test.go
testCacheExpiration(ttl, ttl.evictExpired, t) } func TestTTLEvicter(t *testing.T) { ttl := NewTTL(5*time.Second, 1*time.Millisecond) testCacheEvicter(ttl) } func TestTTLEvictExpired(t *testing.T) { ttl := NewTTL(5*time.Second, 0).(*ttlCache) testCacheEvictExpired(ttl, t) } type callbackRecorder struct { callbacks int64 } func (c *callbackRecorder) callback(key, value any) {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue May 23 17:08:31 UTC 2023 - 2.5K bytes - Viewed (0)