{"id":18038867,"url":"https://github.com/spaceeec/crux_cache","last_synced_at":"2026-05-01T13:32:12.208Z","repository":{"id":57487124,"uuid":"131040926","full_name":"SpaceEEC/crux_cache","owner":"SpaceEEC","description":"A library providing a cache for Discord API structures","archived":false,"fork":false,"pushed_at":"2019-05-25T13:45:40.000Z","size":56,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-05-12T10:51:11.436Z","etag":null,"topics":["cache","discord","discord-api","elixir","library"],"latest_commit_sha":null,"homepage":"","language":"Elixir","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/SpaceEEC.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":"2018-04-25T17:25:37.000Z","updated_at":"2023-05-14T14:43:37.000Z","dependencies_parsed_at":"2022-09-01T22:51:25.882Z","dependency_job_id":null,"html_url":"https://github.com/SpaceEEC/crux_cache","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SpaceEEC%2Fcrux_cache","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SpaceEEC%2Fcrux_cache/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SpaceEEC%2Fcrux_cache/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SpaceEEC%2Fcrux_cache/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SpaceEEC","download_url":"https://codeload.github.com/SpaceEEC/crux_cache/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247271527,"owners_count":20911587,"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":["cache","discord","discord-api","elixir","library"],"created_at":"2024-10-30T14:06:58.041Z","updated_at":"2026-05-01T13:32:12.152Z","avatar_url":"https://github.com/SpaceEEC.png","language":"Elixir","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Crux.Cache\n\nLibrary providing Discord API struct caches for crux.\n\n## Useful links\n\n - [Documentation](https://hexdocs.pm/crux_cache/0.2.0/)\n - [Github](https://github.com/SpaceEEC/crux_cache/)\n - [Changelog](https://github.com/SpaceEEC/crux_cache/releases/tag/0.2.0/)\n - [Umbrella Development Documentation](https://crux.randomly.space/)\n\n\n## Installation\n\nThe library can be installed by adding `crux_cache` to your list of dependencies in `mix.exs`:\n\n```elixir\ndef deps do\n  [\n    {:crux_cache, \"~\u003e 0.2.0\"}\n  ]\nend\n```\n\n## Usage\n\nSmall example:\n\n```elixir\n# Should be part of supervision tree\niex\u003e {:ok, pid} = Crux.Cache.Default.start_link()\n{:ok, #PID\u003c0.178.0\u003e}\n\niex(2)\u003e Crux.Cache.User.insert(%{\n...(2)\u003e     \"avatar\" =\u003e \"646a356e237350bf8b8dfde15667dfc4\",\n...(2)\u003e     \"discriminator\" =\u003e \"0001\",\n...(2)\u003e     \"id\" =\u003e \"218348062828003328\",\n...(2)\u003e     \"username\" =\u003e \"space\"\n...(2)\u003e   }\n...(2)\u003e )\n%{\n  avatar: \"646a356e237350bf8b8dfde15667dfc4\",\n  discriminator: \"0001\",\n  id: 218348062828003328,\n  username: \"space\"\n}\n\niex(3)\u003e Crux.Cache.User.fetch!(218348062828003328)\n%Crux.Structs.User{\n  avatar: \"646a356e237350bf8b8dfde15667dfc4\",\n  bot: false,\n  discriminator: \"0001\",\n  id: 218348062828003328,\n  username: \"space\"\n}\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspaceeec%2Fcrux_cache","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fspaceeec%2Fcrux_cache","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspaceeec%2Fcrux_cache/lists"}