Esempio n. 1
0
func TestGetSet(t *testing.T) {
	cache := newTestCache(t)
	defer cache.Close()
	for _, expire := range []time.Duration{0, 1 * time.Minute} {
		cache.Expire = expire
		cachetest.TestGetSet(t, cache)
	}
}
Esempio n. 2
0
func TestIgnoreErrorGetSet(t *testing.T) {
	c := &IgnoreError{
		Cache: cachetest.NewMapCache(),
	}
	cachetest.TestGetSet(t, c)
}
Esempio n. 3
0
func TestGetSet(t *testing.T) {
	cache := newTestCache(t)
	cachetest.TestGetSet(t, cache)
}