{"id":17398964,"url":"https://github.com/beam-community/redbird","last_synced_at":"2025-04-11T23:05:28.743Z","repository":{"id":48284019,"uuid":"79590150","full_name":"beam-community/redbird","owner":"beam-community","description":"A Redis adapter for Plug.Session","archived":false,"fork":false,"pushed_at":"2024-04-30T03:15:54.000Z","size":314,"stargazers_count":71,"open_issues_count":8,"forks_count":21,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-04-11T23:04:47.163Z","etag":null,"topics":["elixir","elixir-phoenix","redis"],"latest_commit_sha":null,"homepage":null,"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/beam-community.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","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-01-20T19:22:22.000Z","updated_at":"2024-12-03T21:06:33.000Z","dependencies_parsed_at":"2024-10-31T08:02:53.749Z","dependency_job_id":"9ef99750-906c-476f-8b62-cb69bb078e9b","html_url":"https://github.com/beam-community/redbird","commit_stats":null,"previous_names":["thoughtbot/redbird"],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beam-community%2Fredbird","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beam-community%2Fredbird/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beam-community%2Fredbird/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beam-community%2Fredbird/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/beam-community","download_url":"https://codeload.github.com/beam-community/redbird/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248492871,"owners_count":21113163,"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":["elixir","elixir-phoenix","redis"],"created_at":"2024-10-16T15:03:44.945Z","updated_at":"2025-04-11T23:05:28.714Z","avatar_url":"https://github.com/beam-community.png","language":"Elixir","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![CircleCI](https://circleci.com/gh/thoughtbot/redbird.svg?style=svg\u0026circle-token=ffeb06ba85ab9e15f98730027745be851d647b61\u0026branch=master)](https://circleci.com/gh/thoughtbot/redbird)\n\n# Redbird\n\n**Redbird is part of the [thoughtbot Elixir family][elixir-phoenix] of projects.**\n\nRedbird is a Redis session adapter for Plug.Session.\nIt works great for Phoenix!\n\n## Installation\n\n### Add Redbird to your dependency list.\n\n```elixir\n  def deps do\n    [\n      {:redbird, \"~\u003e 0.7.1\"},\n    ]\n  end\n```\n\n### Configure Plug\n\n```elixir\nplug Plug.Session,\n  store: :redis,\n  key: \"_app_key\",\n  expiration_in_seconds: 3000 # Optional - default is 30 days\n```\n\n### Configure Redbird\n\nAll redbird created keys are automatically namespaced with `redbird_session` by\ndefault. If you'd like to set your own custom, per app, configuration you can\nset that in the config.\n\n```elixir\nconfig :redbird, key_namespace: \"my_app_\"\n```\n\n### Configure Redix\n\nRedbird uses [Redix] to communicate with Redis. You can pass configuration\noptions as `redis_options`:\n\n```elixir\nconfig :redbird,\n  redis_options: [\n    host: System.get_env(\"REDIS_HOST\"),\n    port: System.get_env(\"REDIS_PORT\"),\n    password: System.get_env(\"REDIS_PASSWORD\"),\n    ssl: true\n  ]\n```\n\nFor a full list of configuration options, please see [Redix's connection\noptions].\n\n  [Redix]: https://hexdocs.pm/redix/Redix.html\n  [Redix's connection options]: https://hexdocs.pm/redix/Redix.html#start_link/1-connection-options\n\n### Mix Tasks\n\nThis will give you access to the mix task `mix redbird.delete_all_sessions`, for\nclearing all Redbird created user sessions from Redis. If you have not set up a\nper app `key_namespace` in the config this will clear ALL Redbird sessions on\nyour server. Otherwise it will only clear the sessions created by the specific\napp you're running it in.\n\n## Contributing\n\nSee the [CONTRIBUTING] document.\nThank you, [contributors]!\n\n  [CONTRIBUTING]: CONTRIBUTING.md\n  [contributors]: https://github.com/thoughtbot/redbird/graphs/contributors\n\n## License\n\nRedbird is Copyright (c) 2017-2020 thoughtbot, inc.\nIt is free software, and may be redistributed\nunder the terms specified in the [LICENSE] file.\n\n  [LICENSE]: /LICENSE\n\n## About\n\n![thoughtbot](http://presskit.thoughtbot.com/images/thoughtbot-logo-for-readmes.svg)\n\nRedbird is maintained and funded by thoughtbot, inc.\nThe names and logos for thoughtbot are trademarks of thoughtbot, inc.\n\nWe love open source software, Elixir, and Phoenix. See [our other Elixir\nprojects][elixir-phoenix], or [hire our Elixir Phoenix development team][hire]\nto design, develop, and grow your product.\n\n  [elixir-phoenix]: https://thoughtbot.com/services/elixir-phoenix?utm_source=github\n  [hire]: https://thoughtbot.com?utm_source=github\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbeam-community%2Fredbird","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbeam-community%2Fredbird","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbeam-community%2Fredbird/lists"}