{"id":20812377,"url":"https://github.com/databasecleaner/database_cleaner-redis","last_synced_at":"2025-08-13T02:41:19.774Z","repository":{"id":8578695,"uuid":"58895596","full_name":"DatabaseCleaner/database_cleaner-redis","owner":"DatabaseCleaner","description":null,"archived":false,"fork":false,"pushed_at":"2022-12-31T03:05:09.000Z","size":1134,"stargazers_count":5,"open_issues_count":10,"forks_count":8,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-08-09T20:21:13.703Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Ruby","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/DatabaseCleaner.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-05-16T01:53:16.000Z","updated_at":"2025-02-25T18:04:32.000Z","dependencies_parsed_at":"2023-01-13T14:52:56.384Z","dependency_job_id":null,"html_url":"https://github.com/DatabaseCleaner/database_cleaner-redis","commit_stats":null,"previous_names":[],"tags_count":49,"template":false,"template_full_name":null,"purl":"pkg:github/DatabaseCleaner/database_cleaner-redis","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DatabaseCleaner%2Fdatabase_cleaner-redis","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DatabaseCleaner%2Fdatabase_cleaner-redis/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DatabaseCleaner%2Fdatabase_cleaner-redis/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DatabaseCleaner%2Fdatabase_cleaner-redis/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DatabaseCleaner","download_url":"https://codeload.github.com/DatabaseCleaner/database_cleaner-redis/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DatabaseCleaner%2Fdatabase_cleaner-redis/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270169786,"owners_count":24539295,"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-08-13T02:00:09.904Z","response_time":66,"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":"2024-11-17T20:53:43.664Z","updated_at":"2025-08-13T02:41:19.704Z","avatar_url":"https://github.com/DatabaseCleaner.png","language":"Ruby","readme":"# Database Cleaner Adapter for Redis\n\n[![Build Status](https://travis-ci.org/DatabaseCleaner/database_cleaner-redis.svg?branch=master)](https://travis-ci.org/DatabaseCleaner/database_cleaner-redis)\n[![Code Climate](https://codeclimate.com/github/DatabaseCleaner/database_cleaner-redis/badges/gpa.svg)](https://codeclimate.com/github/DatabaseCleaner/database_cleaner-redis)\n[![codecov](https://codecov.io/gh/DatabaseCleaner/database_cleaner-redis/branch/master/graph/badge.svg)](https://codecov.io/gh/DatabaseCleaner/database_cleaner-redis)\n\nClean your Redis databases with Database Cleaner.\n\nSee https://github.com/DatabaseCleaner/database_cleaner for more information.\n\n## Installation\n\n```ruby\n# Gemfile\ngroup :test do\n  gem 'database_cleaner-redis'\nend\n```\n\n## Supported Strategies\n\nThe redis adapter only has one strategy: the deletion strategy.\n\n## Strategy configuration options\n\n`:only` and `:except` may take a list of strings to be passed to [`keys`](https://redis.io/commands/keys)):\n\n```ruby\n# Only delete the \"users\" key, and keys that start with \"cache\".\nDatabaseCleaner[:redis].strategy = :deletion, only: [\"users\", \"cache*\"]\n\n# Delete all keys except the \"users\" key.\nDatabaseCleaner[:redis].strategy = :deletion, except: [\"users\"]\n```\n\n## Adapter configuration options\n\n`#db` defaults to `Redis.new`, but can be specified manually in a few ways:\n\n```ruby\n# Redis URI string:\nDatabaseCleaner[:redis].db = \"redis://localhost:6379/0\"\n\n# Redis connection object:\nDatabaseCleaner[:redis].db = Redis.new(url: \"redis://localhost:6379/0\")\n\n# Back to default:\nDatabaseCleaner[:redis].db = :default\n```\n\n## COPYRIGHT\n\nSee [LICENSE](LICENSE) for details.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdatabasecleaner%2Fdatabase_cleaner-redis","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdatabasecleaner%2Fdatabase_cleaner-redis","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdatabasecleaner%2Fdatabase_cleaner-redis/lists"}