Top 3.0% forks on proxy.golang.org
proxy.golang.org : github.com/fluxcd/pkg/cache
Package cache provides a Store interface for a cache store, along with two implementations of this interface for expiring cache(Cache) and least recently used cache(LRU). Expirable defines an interface for cache with expiring items. This is also implemented by the expiring cache implementation, Cache. The Cache and LRU cache implementations are generic cache. The data type of the value stored in the cache has to be defined when creating the cache. For example, for storing string values in Cache create a string type Cache The cache implementations are self-instrumenting and export metrics about the internal operations of the cache if it is configured with a metrics registerer. For recording cache hit/miss metrics associated with a Flux object for which the cache is used, the caller must explicitly record the cache event based on the result of the operation along with the object in the context When the Flux object associated with the cache metrics is deleted, the metrics can be deleted as follows
Registry
-
Source
- Documentation
- JSON
purl: pkg:golang/github.com/fluxcd/pkg/cache
Keywords:
gitops-toolkit
License: Apache-2.0
Latest release: 22 days ago
First release: over 1 year ago
Namespace: github.com/fluxcd/pkg
Stars: 49 on GitHub
Forks: 88 on GitHub
Total Commits: 1056
Committers: 55
Average commits per author: 19.2
Development Distribution Score (DDS): 0.769
More commit stats: commits.ecosyste.ms
See more repository details: repos.ecosyste.ms
Last synced: 4 days ago