{"adoption": {"forks": 145, "observed_at": "2026-08-28T04:04:13.427327+00:00", "stars": 1278}, "canonical_url": "https://ross.abutalabs.com/products/ttlcache", "card": {"archived": false, "artifact_type": "library", "description": "An in-memory cache with item expiration and generics", "domain": ["developer-tools", "backend", "performance"], "enriched": true, "function": ["caching"], "health_score": 98, "homepage": null, "language": "Go", "license": "MIT", "license_family": "permissive", "maturity": "active", "member_repos": ["jellydator/ttlcache"], "name": "jellydator/ttlcache", "platform": ["go"], "pushed_at": "2026-08-21T07:45:40+00:00", "repo": "jellydator/ttlcache", "stars": 1278, "tags": ["ttl-cache", "in-memory-cache", "generics", "thread-safe", "lru-alternative"], "topics": ["cache", "golang", "ttl-cache", "generics"], "urls": [], "use_cases": ["cache api responses in memory with expiration", "add a ttl-based cache to a go service", "limit cache size by item count or cost", "lazily load missing cache values with duplicate suppression", "track cache hits and misses with metrics", "run eviction callbacks when items expire"], "what_it_is": "TTLCache is an in-memory cache library for Go with per-item or cache-wide TTL expiration, built using generics. It offers thread-safe operations, capacity limits, lazy loading, event handlers, and metrics.", "when_to_avoid": ["you need a distributed or shared cache across multiple instances (use Redis)", "your dataset exceeds available memory", "you need persistence or eviction across process restarts"], "when_to_choose": ["you need a lightweight in-process cache with TTL expiration in Go", "you want generics-based type safety without interface{} casts", "you need capacity limits, loaders, or eviction event hooks"]}, "data_as_of": "2026-08-30T08:39:29.467469+00:00", "members": [{"path": "/products/ttlcache", "repo": "jellydator/ttlcache", "role": "main", "score": 84}], "provenance": {"archived": {"kind": "observed", "observed_at": "2026-08-28T04:04:13.427327+00:00", "source": "github"}, "artifact_type": {"confidence": null, "enriched_at": "2026-08-30T05:02:45.828120+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "efdb4f47375f2bbe107d90bc50019302d92c2db0a4edf818e21b2f61204c01e4", "fetched_at": "2026-08-28T04:04:13.427327+00:00", "kind": "readme", "missing": false, "url": "https://github.com/jellydator/ttlcache"}], "taxonomy_version": 1}, "description": {"kind": "observed", "observed_at": "2026-08-28T04:04:13.427327+00:00", "source": "github"}, "domain": {"confidence": null, "enriched_at": "2026-08-30T05:02:45.828120+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "efdb4f47375f2bbe107d90bc50019302d92c2db0a4edf818e21b2f61204c01e4", "fetched_at": "2026-08-28T04:04:13.427327+00:00", "kind": "readme", "missing": false, "url": "https://github.com/jellydator/ttlcache"}], "taxonomy_version": 1}, "enriched": {"inputs": [], "kind": "computed", "method": "enrichment_status"}, "function": {"confidence": null, "enriched_at": "2026-08-30T05:02:45.828120+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "efdb4f47375f2bbe107d90bc50019302d92c2db0a4edf818e21b2f61204c01e4", "fetched_at": "2026-08-28T04:04:13.427327+00:00", "kind": "readme", "missing": false, "url": "https://github.com/jellydator/ttlcache"}], "taxonomy_version": 1}, "health_score": {"inputs": ["days_since_push", "days_since_release", "archived"], "kind": "computed", "method": "health_v1"}, "homepage": {"kind": "observed", "observed_at": "2026-08-28T04:04:13.427327+00:00", "source": "github"}, "language": {"kind": "observed", "observed_at": "2026-08-28T04:04:13.427327+00:00", "source": "github"}, "license": {"kind": "observed", "observed_at": "2026-08-28T04:04:13.427327+00:00", "source": "github"}, "license_family": {"inputs": ["license"], "kind": "computed", "method": "license_family"}, "maturity": {"confidence": null, "enriched_at": "2026-08-30T05:02:45.828120+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "efdb4f47375f2bbe107d90bc50019302d92c2db0a4edf818e21b2f61204c01e4", "fetched_at": "2026-08-28T04:04:13.427327+00:00", "kind": "readme", "missing": false, "url": "https://github.com/jellydator/ttlcache"}], "taxonomy_version": 1}, "member_repos": {"kind": "observed", "observed_at": "2026-08-28T04:04:13.427327+00:00", "source": "github"}, "name": {"kind": "observed", "observed_at": "2026-08-28T04:04:13.427327+00:00", "source": "github"}, "platform": {"confidence": null, "enriched_at": "2026-08-30T05:02:45.828120+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "efdb4f47375f2bbe107d90bc50019302d92c2db0a4edf818e21b2f61204c01e4", "fetched_at": "2026-08-28T04:04:13.427327+00:00", "kind": "readme", "missing": false, "url": "https://github.com/jellydator/ttlcache"}], "taxonomy_version": 1}, "pushed_at": {"kind": "observed", "observed_at": "2026-08-28T04:04:13.427327+00:00", "source": "github"}, "repo": {"kind": "observed", "observed_at": "2026-08-28T04:04:13.427327+00:00", "source": "github"}, "stars": {"kind": "observed", "observed_at": "2026-08-28T04:04:13.427327+00:00", "source": "github"}, "tags": {"confidence": null, "enriched_at": "2026-08-30T05:02:45.828120+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "efdb4f47375f2bbe107d90bc50019302d92c2db0a4edf818e21b2f61204c01e4", "fetched_at": "2026-08-28T04:04:13.427327+00:00", "kind": "readme", "missing": false, "url": "https://github.com/jellydator/ttlcache"}], "taxonomy_version": 1}, "topics": {"kind": "observed", "observed_at": "2026-08-28T04:04:13.427327+00:00", "source": "github"}, "urls": {"kind": "observed", "observed_at": "2026-08-28T04:04:13.427327+00:00", "source": "github"}, "use_cases": {"confidence": null, "enriched_at": "2026-08-30T05:02:45.828120+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "efdb4f47375f2bbe107d90bc50019302d92c2db0a4edf818e21b2f61204c01e4", "fetched_at": "2026-08-28T04:04:13.427327+00:00", "kind": "readme", "missing": false, "url": "https://github.com/jellydator/ttlcache"}], "taxonomy_version": 1}, "what_it_is": {"confidence": null, "enriched_at": "2026-08-30T05:02:45.828120+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "efdb4f47375f2bbe107d90bc50019302d92c2db0a4edf818e21b2f61204c01e4", "fetched_at": "2026-08-28T04:04:13.427327+00:00", "kind": "readme", "missing": false, "url": "https://github.com/jellydator/ttlcache"}], "taxonomy_version": 1}, "when_to_avoid": {"confidence": null, "enriched_at": "2026-08-30T05:02:45.828120+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "efdb4f47375f2bbe107d90bc50019302d92c2db0a4edf818e21b2f61204c01e4", "fetched_at": "2026-08-28T04:04:13.427327+00:00", "kind": "readme", "missing": false, "url": "https://github.com/jellydator/ttlcache"}], "taxonomy_version": 1}, "when_to_choose": {"confidence": null, "enriched_at": "2026-08-30T05:02:45.828120+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "efdb4f47375f2bbe107d90bc50019302d92c2db0a4edf818e21b2f61204c01e4", "fetched_at": "2026-08-28T04:04:13.427327+00:00", "kind": "readme", "missing": false, "url": "https://github.com/jellydator/ttlcache"}], "taxonomy_version": 1}}, "score": {"components": {"activity": 98, "longevity": 100, "rhythm": 57}, "computed_at": "2026-09-03T02:20:16.233290+00:00", "flags": [], "formula": "round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)", "inputs": {"age_days": 4282, "days_push": 12, "days_rel": 72, "gap_med": 369, "n_releases_24m": 2}, "score": 84, "version": 2}, "staleness": {"enrichment_outdated": false, "low_confidence": false, "scrape_days": 9, "stale_scrape": false}}