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:
committed by
Serge Zaitsev
parent
6d38ab6363
commit
1411b19ad2
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user