{"id":41802126,"url":"https://github.com/zvelo/ttlru","last_synced_at":"2026-01-25T06:05:15.450Z","repository":{"id":29420747,"uuid":"32956429","full_name":"zvelo/ttlru","owner":"zvelo","description":"A simple, goroutine-safe, cache with a global TTL, a fixed size and an LRU eviction policy for Go (golang)","archived":false,"fork":false,"pushed_at":"2023-04-28T14:04:37.000Z","size":31,"stargazers_count":23,"open_issues_count":0,"forks_count":14,"subscribers_count":38,"default_branch":"master","last_synced_at":"2024-12-17T14:44:50.339Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zvelo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2015-03-26T23:01:16.000Z","updated_at":"2023-08-06T07:26:24.000Z","dependencies_parsed_at":"2024-06-18T16:43:17.712Z","dependency_job_id":"58747ed1-9404-4e63-abf6-332d4df3316f","html_url":"https://github.com/zvelo/ttlru","commit_stats":null,"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"purl":"pkg:github/zvelo/ttlru","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zvelo%2Fttlru","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zvelo%2Fttlru/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zvelo%2Fttlru/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zvelo%2Fttlru/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zvelo","download_url":"https://codeload.github.com/zvelo/ttlru/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zvelo%2Fttlru/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28745836,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-25T05:12:38.112Z","status":"ssl_error","status_checked_at":"2026-01-25T05:04:50.338Z","response_time":113,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-01-25T06:05:14.893Z","updated_at":"2026-01-25T06:05:15.433Z","avatar_url":"https://github.com/zvelo.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ttlru\n\n[![GoDoc](https://godoc.org/zvelo.io/ttlru?status.svg)](https://godoc.org/zvelo.io/ttlru) [![Circle CI](https://circleci.com/gh/zvelo/ttlru.svg?style=svg)](https://circleci.com/gh/zvelo/ttlru) [![Coverage Status](https://coveralls.io/repos/zvelo/ttlru/badge.svg)](https://coveralls.io/r/zvelo/ttlru)\n\nPackage ttlru provides a simple, goroutine safe, cache with a fixed number of entries. Each entry has a per-cache defined TTL. This TTL is reset on both modification and access of the value. As a result, if the cache is full, and no items have expired, when adding a new item, the item with the soonest expiration will be evicted.\n\nIt is based on the LRU implementation in golang-lru:\n[github.com/hashicorp/golang-lru](http://godoc.org/github.com/hashicorp/golang-lru)\n\nWhich in turn is based on the LRU implementation in groupcache:\n[github.com/golang/groupcache/lru](http://godoc.org/github.com/golang/groupcache/lru)\n\nIt should be imported as `zvelo.io/ttlru`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzvelo%2Fttlru","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzvelo%2Fttlru","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzvelo%2Fttlru/lists"}