{"id":21258845,"url":"https://github.com/jamesponddotco/recache-go","last_synced_at":"2025-10-27T15:49:26.723Z","repository":{"id":151934109,"uuid":"621548212","full_name":"jamesponddotco/recache-go","owner":"jamesponddotco","description":"[READ-ONLY] Simple caching interface for Go's regular expressions package.","archived":false,"fork":false,"pushed_at":"2023-04-12T16:22:53.000Z","size":18,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"trunk","last_synced_at":"2025-10-27T15:49:26.350Z","etag":null,"topics":["cache","caching","go","lru","mockingjay","regex","regexp"],"latest_commit_sha":null,"homepage":"https://sr.ht/~jamesponddotco/recache-go/","language":"Go","has_issues":false,"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/jamesponddotco.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","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":"2023-03-30T22:19:13.000Z","updated_at":"2024-04-02T12:23:50.000Z","dependencies_parsed_at":"2023-05-16T16:00:15.619Z","dependency_job_id":null,"html_url":"https://github.com/jamesponddotco/recache-go","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/jamesponddotco/recache-go","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jamesponddotco%2Frecache-go","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jamesponddotco%2Frecache-go/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jamesponddotco%2Frecache-go/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jamesponddotco%2Frecache-go/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jamesponddotco","download_url":"https://codeload.github.com/jamesponddotco/recache-go/tar.gz/refs/heads/trunk","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jamesponddotco%2Frecache-go/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":281295816,"owners_count":26476759,"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","status":"online","status_checked_at":"2025-10-27T02:00:05.855Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["cache","caching","go","lru","mockingjay","regex","regexp"],"created_at":"2024-11-21T04:11:10.090Z","updated_at":"2025-10-27T15:49:26.695Z","avatar_url":"https://github.com/jamesponddotco.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# recache\n\n[![Go Documentation](https://godocs.io/git.sr.ht/~jamesponddotco/recache-go?status.svg)](https://godocs.io/git.sr.ht/~jamesponddotco/recache-go)\n[![Go Report Card](https://goreportcard.com/badge/git.sr.ht/~jamesponddotco/recache-go)](https://goreportcard.com/report/git.sr.ht/~jamesponddotco/recache-go)\n\n\u003e **Note**: This library is under active development and most pieces\n\u003e haven't been tested yet. **Do not use in production** until a tagged\n\u003e v2.0.0 release is out.\n\nPackage `recache` is a lightweight caching library for [Go's standard regular\nexpression package](https://godocs.io/regexp) that offers improved performance\nby avoiding recompilation of global regular expression variables and by caching\nregular expressions.\n\n## Features\n\n- Stable cache interface.\n- Simple and easy-to-use API.\n- Thread-safe caching of compiled regular expressions.\n- Lazy compilation of regular expressions.\n- Minimal memory allocations.\n\n\n### `recache.Cache` implementations\n\nThe `recache` package itself only provides a cache interface and some utility\nfunctions for users who wish to implement that interface. You can either use an\nimplementation created by someone else or write your own.\n\n**Implementations**\n\n- [`lrure`](https://git.sr.ht/~jamesponddotco/recache-go/tree/trunk/item/lrure)\n  provides a thread-safe in-memory cache using the [least recently used\n  (LRU)](https://en.wikipedia.org/wiki/Cache_replacement_policies#Least_recently_used_(LRU))\n  cache replacement policy.\n- [`mockingjayre`](https://git.sr.ht/~jamesponddotco/recache-go/tree/trunk/item/mockingjayre)\n  provides an in-memory cache using the\n  [Mockingjay](https://en.wikipedia.org/wiki/Cache_replacement_policies#Mockingjay)\n  cache replacement policy.\n\n\nIf wrote a `recache.Cache` implementation and wish it to be linked here,\n[please send a patch](https://git.sr.ht/~jamesponddotco/recache-go#resources).\n\n## Installation\n\nTo install `recache` alone, run:\n\n```sh\ngo get git.sr.ht/~jamesponddotco/recache-go\n```\n\n## Contributing\n\nAnyone can help make recache better. Check out [the contribution\nguidelines](https://git.sr.ht/~jamesponddotco/recache-go/tree/master/item/CONTRIBUTING.md)\nfor more information.\n\n## Resources\n\nThe following resources are available:\n\n- [Package documentation](https://godocs.io/git.sr.ht/~jamesponddotco/recache-go).\n- [Support and general discussions](https://lists.sr.ht/~jamesponddotco/recache-discuss).\n- [Patches and development related questions](https://lists.sr.ht/~jamesponddotco/recache-devel).\n- [Instructions on how to prepare patches](https://git-send-email.io/).\n- [Feature requests and bug reports](https://todo.sr.ht/~jamesponddotco/recache).\n\n---\n\nReleased under the [MIT License](LICENSE.md).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjamesponddotco%2Frecache-go","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjamesponddotco%2Frecache-go","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjamesponddotco%2Frecache-go/lists"}