{"id":32164960,"url":"https://github.com/webdeb/file_cache","last_synced_at":"2026-07-09T01:32:17.178Z","repository":{"id":62429591,"uuid":"120650275","full_name":"webdeb/file_cache","owner":"webdeb","description":"Simple Elixir file based cache library","archived":false,"fork":false,"pushed_at":"2018-02-10T00:06:07.000Z","size":13,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-05-14T18:12:59.674Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Elixir","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/webdeb.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-02-07T17:52:30.000Z","updated_at":"2018-02-07T17:52:45.000Z","dependencies_parsed_at":"2022-11-01T20:06:39.288Z","dependency_job_id":null,"html_url":"https://github.com/webdeb/file_cache","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/webdeb/file_cache","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webdeb%2Ffile_cache","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webdeb%2Ffile_cache/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webdeb%2Ffile_cache/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webdeb%2Ffile_cache/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/webdeb","download_url":"https://codeload.github.com/webdeb/file_cache/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webdeb%2Ffile_cache/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35283905,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-08T02:00:06.796Z","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":[],"created_at":"2025-10-21T14:56:32.490Z","updated_at":"2026-07-09T01:32:17.163Z","avatar_url":"https://github.com/webdeb.png","language":"Elixir","funding_links":[],"categories":[],"sub_categories":[],"readme":"# FileCache\n\nSimply store arbitrary data into files, it has just two functions, `store` \u0026 `load`\n\n## Installation\n\n\n```elixir\ndef deps do\n  [\n    {:file_cache, \"~\u003e 0.2.0\"}\n  ]\nend\n```\n\n## Configuration\n\nSet the path to the directory you would like to point to for your cache files, the default setting is:\n\n```elixir\n  config :file_cache, path: \"/tmp/appcache\"\n```\n\n## Usage\n\nThe data is stored into files in the bert format (Binary ERlang Term). Its very lightweight and optimized for the Erlang VM.\n\nUse it so:\n\n```elixir\nFileCache.store(:my_data, %{})\n```\n\nThis will create the BERT file in `/tmp/appcache/my_data`\n\n```elixir\nFileCache.load(:my_data)\n# -\u003e nil | %{}\n```\n\n## Use inside a GenServer\n\nWhen you have to restart your Server, and you don't want to loose your state? Use the `FileCache.GSHelper`\n\n```elixir\ndefmodule MyGS do\n  use GenServer\n  use FileCache.GSHelper, id: :my_special_state\nend\n```\n\nThe GenServer Helper will automaticall store your data in the `terminate` callback and it will try to load the state in the `init` callback on startup.\n\nMore infos and Docs [https://hexdocs.pm/file_cache](https://hexdocs.pm/file_cache).\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwebdeb%2Ffile_cache","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwebdeb%2Ffile_cache","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwebdeb%2Ffile_cache/lists"}