Update travis
Signed-off-by: Peng Gao <peng.gao.dut@gmail.com>
This commit is contained in:
parent
884405c431
commit
64597b577e
|
@ -3,6 +3,11 @@ language: go
|
||||||
go:
|
go:
|
||||||
- tip
|
- tip
|
||||||
|
|
||||||
script:
|
before_script:
|
||||||
- go test -v -coverprofile=coverage.txt -covermode=atomic
|
- 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
|
||||||
|
|
||||||
|
|
|
@ -5,8 +5,8 @@
|
||||||
|
|
||||||
cachemap is an in-memory key:value store/cache similar to memcached that is
|
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
|
suitable for applications running on a single machine. Its major advantage is
|
||||||
that, being essentially a thread-safe `map[string]interface{}` with expiration
|
that, being essentially a thread-safe map with expirationtimes, it doesn't
|
||||||
times, it doesn't need to serialize or transmit its contents over the network.
|
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
|
Any object can be stored, for a given duration or forever, and the cache can be
|
||||||
safely used by multiple goroutines.
|
safely used by multiple goroutines.
|
||||||
|
@ -22,10 +22,12 @@ one) to recover from downtime quickly. (See the docs for `NewFrom()` for caveats
|
||||||
|
|
||||||
### Usage
|
### Usage
|
||||||
|
|
||||||
|
run `cachemap -k string -v string`
|
||||||
|
|
||||||
```go
|
```go
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"github.com/patrickmn/cachemap"
|
"github.com/ggaaooppeengg/cachemap"
|
||||||
"time"
|
"time"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -506,7 +506,6 @@ func BenchmarkRWMutexMapSetDeleteSingleLock(b *testing.B) {
|
||||||
}
|
}
|
||||||
|
|
||||||
func BenchmarkIncrementInt(b *testing.B) {
|
func BenchmarkIncrementInt(b *testing.B) {
|
||||||
b.Skip()
|
|
||||||
b.StopTimer()
|
b.StopTimer()
|
||||||
tc := New_tpl(Attr_tpl{
|
tc := New_tpl(Attr_tpl{
|
||||||
DefaultExpiration: DefaultExpiration,
|
DefaultExpiration: DefaultExpiration,
|
||||||
|
|
Loading…
Reference in New Issue