proxy.golang.org : github.com/sethvargo/go-cache
Package cache implements a collection of caching algorithms in Go which support generics for strong typing. The implementations are the purely "academic" definitions of the cache algorithms, and more finely-tuned libraries might be a better fit for high-throughput or high-storage use cases. In addition to the standard Get and Set functions, there is also a package-level Fetch function which acts as a write-through operation: By default, none of the implementations are safe for concurrent use. To make a cache as safe for concurrent use, wrap it in the sync cache: Unfortunately Go does not currently infer the type constraint from the input, so you must declare it twice.
Registry
-
Source
- Documentation
- JSON
purl: pkg:golang/github.com/sethvargo/go-cache
License: Apache-2.0
Latest release: almost 3 years ago
First release: almost 3 years ago
Namespace: github.com/sethvargo
Stars: 44 on GitHub
Forks: 0 on GitHub
See more repository details: repos.ecosyste.ms
Last synced: 7 days ago