In-memory key:value store/cache library for Go
29.22 KB
built 2026-10-29 10:50:31 GMT
Description
Go-cache 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.
Any object can be stored, for a given duration or forever, and the cache can be
safely used by multiple goroutines.
Although Go-cache isn't meant to be used as a persistent datastore, the entire
cache can be saved to and loaded from a file (using c.Items() to retrieve the
items map to serialize, and NewFrom() to create a cache from a deserialized one)
to recover from downtime quickly. (See the docs for NewFrom() for caveats.)
Dependencies
4 totalRequires3
- go-rpm-macros
- rpmlib(CompressedFileNames) <= 3.0.4-1
- rpmlib(FileDigests) <= 4.6.0-1
Provides1
- golang-github-patrickmn-cache-devel = 2.1.0-20.fc45
ObsoletesNo Obsoletes
ConflictsNo Conflicts
RecommendsNo Recommends
SuggestsNo Suggests
SupplementsNo Supplements
EnhancesNo Enhances
Files
2Name ![]() |
Size |
|---|---|
| go-cache-2.1.0.tar.gz | 13.25 KB |
| golang-github-patrickmn-cache.spec | 5.27 KB |
Files 1–2 of 2
Component of
buildroots that installed this RPMNo Buildroots
