{"id":15345683,"url":"https://github.com/git-hulk/go-lru","last_synced_at":"2025-09-20T23:53:58.985Z","repository":{"id":44877643,"uuid":"81055183","full_name":"git-hulk/go-lru","owner":"git-hulk","description":"golang LRU cache","archived":false,"fork":false,"pushed_at":"2019-10-29T02:19:18.000Z","size":10,"stargazers_count":13,"open_issues_count":0,"forks_count":8,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-11-01T08:42:20.282Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/git-hulk.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}},"created_at":"2017-02-06T06:27:23.000Z","updated_at":"2023-09-07T14:49:17.000Z","dependencies_parsed_at":"2022-08-28T13:53:29.821Z","dependency_job_id":null,"html_url":"https://github.com/git-hulk/go-lru","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/git-hulk%2Fgo-lru","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/git-hulk%2Fgo-lru/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/git-hulk%2Fgo-lru/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/git-hulk%2Fgo-lru/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/git-hulk","download_url":"https://codeload.github.com/git-hulk/go-lru/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223657852,"owners_count":17181024,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":"2024-10-01T11:14:45.092Z","updated_at":"2025-09-20T23:53:53.921Z","avatar_url":"https://github.com/git-hulk.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# go-lru [![Go Report Card](https://goreportcard.com/badge/github.com/git-hulk/go-lru)](https://goreportcard.com/report/github.com/git-hulk/go-lru) [![Build Status](https://travis-ci.org/git-hulk/go-lru.svg?branch=master)](https://travis-ci.org/git-hulk/go-lru) \n\ngo-lru is an MIT-licensed Go LRU cache bases on GroupCache, with expire time supported\n\n## Example\n\nSet key with expire time\n\n```\ncache := NewCache(100) // max entries in cache is 100\ncache.Set(\"a\", 1234, 1) // key \"a\" would be expired after 1 second\n```\n\nSet key without expire time\n\n```\ncache := NewCache(100)\ncache.Set(\"a\", 1234) // set key \"a\" without expire time\n```\n\n## API doc\n\nAPI documentation is available via  [https://godoc.org/github.com/git-hulk/go-lru](https://godoc.org/github.com/git-hulk/go-lru)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgit-hulk%2Fgo-lru","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgit-hulk%2Fgo-lru","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgit-hulk%2Fgo-lru/lists"}