in-memory lru cache of limited capacity

fix memLimit flag usage

use megabytes as a unit for memory store capacity

fix incorrect item rearrangement in lru cache

use latest 1.x Go on trais
This commit is contained in:
Serge A. Zaitsev
2018-09-23 09:29:37 +02:00
committed by Serge Zaitsev
parent 6d38ab6363
commit 1411b19ad2
6 changed files with 164 additions and 18 deletions

View File

@@ -7,6 +7,8 @@ import (
"github.com/sixt/gomodproxy/pkg/vcs"
)
type logger = func(...interface{})
// Store is an interface for a typical cache. It allows to put a snapshot and
// to get snapshot of the specific version.
type Store interface {