Top 2.5% dependent packages on proxy.golang.org
Top 1.2% dependent repos on proxy.golang.org
Top 8.8% forks on proxy.golang.org
Top 1.5% docker downloads on proxy.golang.org
proxy.golang.org : github.com/go-pkgz/lcw
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
Keywords:
cache
, caching-library
, go
, golang-library
License: MIT
Latest release: over 1 year ago
First release: over 6 years ago
Namespace: github.com/go-pkgz
Dependent packages: 5
Dependent repositories: 20
Stars: 16 on GitHub
Forks: 4 on GitHub
Docker dependents: 4
Docker downloads: 156
See more repository details: repos.ecosyste.ms
Funding links: https://github.com/sponsors/umputun
Last synced: 9 days ago