Пример #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)
	}
}
Пример #2
0
func TestIgnoreErrorGetSet(t *testing.T) {
	c := &IgnoreError{
		Cache: cachetest.NewMapCache(),
	}
	cachetest.TestGetSet(t, c)
}
Пример #3
0
func TestGetSet(t *testing.T) {
	cache := newTestCache(t)
	cachetest.TestGetSet(t, cache)
}