Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestTTLEvictExpired (0.17 sec)

  1. 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)
Back to top