Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestAddBringsToFront (0.12 sec)

  1. staging/src/k8s.io/apimachinery/pkg/util/cache/lruexpirecache_test.go

    	expectNotEntry(t, c, "elem1")
    	expectEntry(t, c, "elem2", "2")
    	expectEntry(t, c, "elem3", "3")
    	expectEntry(t, c, "elem4", "4")
    	expectEntry(t, c, "elem5", "5")
    }
    
    func TestAddBringsToFront(t *testing.T) {
    	c := NewLRUExpireCache(4)
    	c.Add("elem1", "1", 10*time.Hour)
    	c.Add("elem2", "2", 10*time.Hour)
    	c.Add("elem3", "3", 10*time.Hour)
    	c.Add("elem4", "4", 10*time.Hour)
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Nov 03 18:40:48 UTC 2023
    - 4.3K bytes
    - Viewed (0)
Back to top