From 64597b577e94ee3dc3db37a9aca8d16b0df8cc34 Mon Sep 17 00:00:00 2001 From: Peng Gao Date: Wed, 9 Nov 2016 14:33:00 +0800 Subject: [PATCH] Update travis Signed-off-by: Peng Gao --- .travis.yml | 9 +++++++-- README.md | 8 +++++--- cache_test.go | 1 - 3 files changed, 12 insertions(+), 6 deletions(-) diff --git a/.travis.yml b/.travis.yml index 9305d77..bac1a1b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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 diff --git a/README.md b/README.md index 8229ebb..570380c 100644 --- a/README.md +++ b/README.md @@ -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" ) diff --git a/cache_test.go b/cache_test.go index 94554a9..2e406fe 100644 --- a/cache_test.go +++ b/cache_test.go @@ -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,