{"id":32167480,"url":"https://github.com/ledest/beamcache","last_synced_at":"2026-02-21T13:01:15.740Z","repository":{"id":88422332,"uuid":"96708322","full_name":"Ledest/beamcache","owner":"Ledest","description":"Erlang BEAM cache","archived":false,"fork":false,"pushed_at":"2024-12-06T21:39:13.000Z","size":47,"stargazers_count":5,"open_issues_count":0,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-21T15:38:10.731Z","etag":null,"topics":["cache","erlang"],"latest_commit_sha":null,"homepage":"","language":"Erlang","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"lgpl-2.1","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Ledest.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":"2017-07-09T20:05:06.000Z","updated_at":"2024-12-06T21:39:16.000Z","dependencies_parsed_at":"2024-12-06T22:30:08.552Z","dependency_job_id":"61baa047-1c71-400f-bcc9-b8b2d76463ad","html_url":"https://github.com/Ledest/beamcache","commit_stats":null,"previous_names":[],"tags_count":29,"template":false,"template_full_name":null,"purl":"pkg:github/Ledest/beamcache","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ledest%2Fbeamcache","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ledest%2Fbeamcache/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ledest%2Fbeamcache/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ledest%2Fbeamcache/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Ledest","download_url":"https://codeload.github.com/Ledest/beamcache/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ledest%2Fbeamcache/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29681468,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-21T12:30:22.644Z","status":"ssl_error","status_checked_at":"2026-02-21T12:29:55.402Z","response_time":107,"last_error":"SSL_read: 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":["cache","erlang"],"created_at":"2025-10-21T15:31:15.146Z","updated_at":"2026-02-21T13:01:15.724Z","avatar_url":"https://github.com/Ledest.png","language":"Erlang","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Build Status](https://github.com/Ledest/beamcache/actions/workflows/erlang.yml/badge.svg)](https://github.com/Ledest/beamcache/actions/workflows/erlang.yml/badge.svg)\n\n# beamcache: Erlang BEAM Cache\n\n## Usage\n\n```erlang\nCacheName = my_cache,\nCache = #{a =\u003e 1, b =\u003e true, \u003c\u003c\"key\"\u003e\u003e =\u003e \"TEST\"},\n{module, CacheName} = beamcache:init(CacheName, Cache),\nCache = CacheName:get(),\ntrue = CacheName:get(b),\nfalse = CacheName:get(c, false).\n```\n\nTo shut up xref and dialyzer add such module to sources:\n\n```erlang\n-module(testbc).\n-export([get/0, get/1, get/2]).\n\nget() -\u003e erlang:nif_error(undef).\nget(_) -\u003e erlang:nif_error(undef).\nget(_, _) -\u003e erlang:nif_error(undef).\nerase(_) -\u003e erlang:nif_error(undef).\nput(_, _) -\u003e erlang:nif_error(undef).\n```\n\nTo protect against using uninitialized cache add such module to sources:\n\n```erlang\n-module(testbc).\n-export(['$handle_undefined_function'/2]).\n\n'$handle_undefined_function'(F, A) -\u003e\n    {module, ?MODULE} = beamcache:init(?MODULE, #{a =\u003e 1, b =\u003e true, \u003c\u003c\"key\"\u003e\u003e =\u003e \"TEST\"}),\n    apply(?MODULE, F, A).\n```\n\nOr come up with a combination of the above examples...\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fledest%2Fbeamcache","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fledest%2Fbeamcache","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fledest%2Fbeamcache/lists"}