forked from TrueCloudLab/distribution
e36cb0a5d8
Instead of letting the cache grow without bound, use a LRU to impose a size limit. The limit is configurable through a new `blobdescriptorsize` config key. Signed-off-by: Aaron Lehmann <alehmann@netflix.com>
13 lines
351 B
Go
13 lines
351 B
Go
package memory
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/distribution/distribution/v3/registry/storage/cache/cachecheck"
|
|
)
|
|
|
|
// TestInMemoryBlobInfoCache checks the in memory implementation is working
|
|
// correctly.
|
|
func TestInMemoryBlobInfoCache(t *testing.T) {
|
|
cachecheck.CheckBlobDescriptorCache(t, NewInMemoryBlobDescriptorCacheProvider(UnlimitedSize))
|
|
}
|