Logo
Explore Help
Sign In
fcrozat/distribution
1
0
Fork 0
You've already forked distribution
Code Issues Pull Requests Packages Projects Releases Wiki Activity
Files
4ac515fde468f8d0845ae68fa4416ed4525bce90
distribution/docs/storage/cache/memory_test.go

10 lines
227 B
Go
Raw Normal View History

Define and implement layer info cache This changeset defines the interface for layer info caches. Layer info caches speed up access to layer meta data accessed in storage driver backends. The two main operations are tests for repository membership and resolving path and size information for backend blobs. Two implementations are available. The main implementation leverages redis to store layer info. An alternative implementation simply caches layer info in maps, which should speed up resolution for less sophisticated implementations. Signed-off-by: Stephen J Day <stephen.day@docker.com>
2015-04-01 16:30:00 -07:00
package cache
import "testing"
// TestInMemoryLayerInfoCache checks the in memory implementation is working
// correctly.
func TestInMemoryLayerInfoCache(t *testing.T) {
checkLayerInfoCache(t, NewInMemoryLayerInfoCache())
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.5 Page: 39ms Template: 2ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API