1
0

Update travis

Signed-off-by: Peng Gao <peng.gao.dut@gmail.com>
This commit is contained in:
Peng Gao 2016-11-09 14:33:00 +08:00
parent 884405c431
commit 64597b577e
3 changed files with 12 additions and 6 deletions

View File

@ -3,6 +3,11 @@ language: go
go:
- tip
script:
- go test -v -coverprofile=coverage.txt -covermode=atomic
before_script:
- go get github.com/axw/gocov/gocov
- go get github.com/mattn/goveralls
- if ! go get code.google.com/p/go.tools/cmd/cover; then go get golang.org/x/tools/cmd/cover; fi
script:
- $HOME/gopath/bin/goveralls -service=travis-ci

View File

@ -5,8 +5,8 @@
cachemap is an in-memory key:value store/cache similar to memcached that is
suitable for applications running on a single machine. Its major advantage is
that, being essentially a thread-safe `map[string]interface{}` with expiration
times, it doesn't need to serialize or transmit its contents over the network.
that, being essentially a thread-safe map with expirationtimes, it doesn't
need to serialize or transmit its contents over the network.
Any object can be stored, for a given duration or forever, and the cache can be
safely used by multiple goroutines.
@ -22,10 +22,12 @@ one) to recover from downtime quickly. (See the docs for `NewFrom()` for caveats
### Usage
run `cachemap -k string -v string`
```go
import (
"fmt"
"github.com/patrickmn/cachemap"
"github.com/ggaaooppeengg/cachemap"
"time"
)

View File

@ -506,7 +506,6 @@ func BenchmarkRWMutexMapSetDeleteSingleLock(b *testing.B) {
}
func BenchmarkIncrementInt(b *testing.B) {
b.Skip()
b.StopTimer()
tc := New_tpl(Attr_tpl{
DefaultExpiration: DefaultExpiration,