Ecosyste.ms: Packages

An open API service providing package, version and dependency metadata of many open source software ecosystems and registries.

Top 9.2% on proxy.golang.org

proxy.golang.org : github.com/go-pkgz/lcw/v2

Package lcw adds a thin layer on top of lru and expirable cache providing more limits and common interface. The primary method to get (and set) data to/from the cache is LoadingCache.Get returning stored data for a given key or call provided func to retrieve and store, similar to Guava loading cache. Limits allow max values for key size, number of keys, value size and total size of values in the cache. CacheStat gives general stats on cache performance. 3 flavors of cache provided - NoP (do-nothing cache), ExpirableCache (TTL based), and LruCache nolint:govet //false positive due to example name ExampleLoadingCacheMutability illustrates changing mutable stored item outside of cache, works only for non-Redis cache.

Registry - Source - Documentation - JSON
purl: pkg:golang/github.com/go-pkgz/lcw/v2
Keywords: cache, caching-library, go, golang-library
License: MIT
Latest release: 19 days ago
Namespace: github.com/go-pkgz/lcw
Stars: 20 on GitHub
Forks: 4 on GitHub
See more repository details: repos.ecosyste.ms
Funding links: https://github.com/sponsors/umputun
Last synced: 19 days ago