kaniko/vendor/github.com/hashicorp/golang-lru
Sascha Schwarze 69f942f751
Improve retry behavior for push operation (#1578)
* Update go-containerregistry to 0.4

* Implement --push-retry argument
2021-02-22 21:25:58 -08:00
..
simplelru Improve retry behavior for push operation (#1578) 2021-02-22 21:25:58 -08:00
.gitignore upgrade go container registry to latest master 2020-03-18 15:00:49 -07:00
2q.go upgrade go container registry to latest master 2020-03-18 15:00:49 -07:00
LICENSE Updated vendor for exported BuildArgs 2018-05-09 11:56:32 -07:00
README.md upgrade go container registry to latest master 2020-03-18 15:00:49 -07:00
arc.go upgrade go container registry to latest master 2020-03-18 15:00:49 -07:00
doc.go upgrade go container registry to latest master 2020-03-18 15:00:49 -07:00
go.mod Improve retry behavior for push operation (#1578) 2021-02-22 21:25:58 -08:00
lru.go Improve retry behavior for push operation (#1578) 2021-02-22 21:25:58 -08:00

README.md

golang-lru

This provides the lru package which implements a fixed-size thread safe LRU cache. It is based on the cache in Groupcache.

Documentation

Full docs are available on Godoc

Example

Using the LRU is very simple:

l, _ := New(128)
for i := 0; i < 256; i++ {
    l.Add(i, nil)
}
if l.Len() != 128 {
    panic(fmt.Sprintf("bad len: %v", l.Len()))
}