具有过期功能和访问计数器的并发安全 Go 缓存库
Concurrency-safe golang caching library with expiration capabilities.
Make sure you have a working Go environment (Go 1.2 or higher is required). See the install instructions.
To install cache2go, simply run:
go get github.com/muesli/cache2goTo compile it from source:
cd $GOPATH/src/github.com/muesli/cache2go
go get -u -v
go build && go test -v…To run this example, go to examples/mycachedapp/ and run:
go run mycachedapp.goYou can find a few more examples here. Also see our test-cases in cache_test.go for further working examples.
暂无开放 Issues,或尚未同步最近议题。