Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/hnlq715/golang-lru
Browse files Browse the repository at this point in the history
  • Loading branch information
sysulq committed Apr 22, 2018
2 parents f69ba19 + 76abc35 commit 9fedbc2
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
17 changes: 17 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
language: go

env: GO15VENDOREXPERIMENT=1

go:
- 1.5.x
- 1.6.x
- 1.7.x
- 1.8.x
- 1.9.x
- tip

script:
- go test -race -coverprofile=profile.out -covermode=atomic

after_success:
- bash <(curl -s https://codecov.io/bash) || echo "Codecov did not collect coverage reports"
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
golang-lru
==========
[![Build Status](https://travis-ci.org/hnlq715/golang-lru.svg?branch=master)](https://travis-ci.org/hnlq715/golang-lru)
[![Coverage](https://codecov.io/gh/hnlq715/golang-lru/branch/master/graph/badge.svg)](https://codecov.io/gh/hnlq715/golang-lru)

This provides the `lru` package which implements a fixed-size
thread safe LRU cache with expire feature. It is based on [golang-lru](https://github.com/hashicorp/golang-lru).
Expand All @@ -15,7 +17,7 @@ Example
Using the LRU is very simple:

```go
l, _ := New(128)
l, _ := NewARCWithExpire(128, 30*time.Second)
for i := 0; i < 256; i++ {
l.Add(i, nil)
}
Expand Down

0 comments on commit 9fedbc2

Please sign in to comment.