{"id":50818343,"url":"https://github.com/dipakmdhrm/ddev-dragonfly","last_synced_at":"2026-06-13T11:33:51.667Z","repository":{"id":360699445,"uuid":"1251293362","full_name":"dipakmdhrm/ddev-dragonfly","owner":"dipakmdhrm","description":"DDEV add-on for DragonflyDB — a Redis-compatible in-memory data store","archived":false,"fork":false,"pushed_at":"2026-05-27T13:21:31.000Z","size":9,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-27T15:12:43.618Z","etag":null,"topics":["cache","ddev","ddev-get","dragonfly","dragonflydb","redis"],"latest_commit_sha":null,"homepage":null,"language":"Shell","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/dipakmdhrm.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-05-27T12:41:58.000Z","updated_at":"2026-05-27T13:21:37.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/dipakmdhrm/ddev-dragonfly","commit_stats":null,"previous_names":["dipakmdhrm/ddev-dragonfly"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/dipakmdhrm/ddev-dragonfly","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dipakmdhrm%2Fddev-dragonfly","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dipakmdhrm%2Fddev-dragonfly/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dipakmdhrm%2Fddev-dragonfly/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dipakmdhrm%2Fddev-dragonfly/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dipakmdhrm","download_url":"https://codeload.github.com/dipakmdhrm/ddev-dragonfly/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dipakmdhrm%2Fddev-dragonfly/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34283390,"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-06-13T02:00:06.617Z","response_time":62,"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":["cache","ddev","ddev-get","dragonfly","dragonflydb","redis"],"created_at":"2026-06-13T11:33:49.011Z","updated_at":"2026-06-13T11:33:51.663Z","avatar_url":"https://github.com/dipakmdhrm.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ddev-dragonfly\n\nA DDEV add-on that provides [DragonflyDB](https://www.dragonflydb.io/) as a Redis-compatible in-memory data store for local development.\n\nDragonflyDB is a modern replacement for Redis that is fully compatible with the Redis API while offering better performance and lower memory usage for many workloads.\n\n## Installation\n\n```bash\nddev add-on get ddev-dragonfly\nddev restart\n```\n\nAfter installation, the DragonflyDB service is available at `dragonfly:6379` from within the DDEV network.\n\n## Commands\n\n| Command | Description |\n|---------|-------------|\n| `ddev redis-cli` | Run redis-cli commands against DragonflyDB |\n| `ddev dragonfly-flush` | Flush all keys (FLUSHALL ASYNC) |\n\n### Examples\n\n```bash\nddev redis-cli PING          # Returns PONG\nddev redis-cli SET foo bar   # Set a key\nddev redis-cli GET foo       # Get a key\nddev redis-cli INFO          # Server info\nddev redis-cli DBSIZE        # Number of keys\nddev dragonfly-flush          # Flush all keys\n```\n\n## Configuration\n\nOverride defaults by setting environment variables in `.ddev/config.yaml`:\n\n```yaml\nweb_environment:\n  - DRAGONFLY_DOCKER_IMAGE=docker.dragonflydb.io/dragonflydb/dragonfly:v1.25.5\n  - DRAGONFLY_HOSTNAME=dragonfly\n```\n\n| Variable | Default | Description |\n|----------|---------|-------------|\n| `DRAGONFLY_DOCKER_IMAGE` | `docker.dragonflydb.io/dragonflydb/dragonfly:v1.38.1` | Docker image for DragonflyDB |\n| `DRAGONFLY_HOSTNAME` | `dragonfly` | Hostname for the DragonflyDB container |\n\n### Default flags\n\nThe DragonflyDB container starts with these flags:\n\n- `--port=6379` — listen port\n- `--maxmemory=512mb` — memory limit\n- `--cache_mode=true` — automatic eviction of least-recently-used keys when memory limit is reached\n- `--proactor_threads=2` — number of I/O threads (suitable for local dev)\n\nTo customize flags, create a `docker-compose.dragonfly_extra.yaml` override:\n\n```yaml\nservices:\n  dragonfly:\n    command: dragonfly --port=6379 --maxmemory=1gb --cache_mode=true --proactor_threads=4\n```\n\n## Drupal integration\n\nFor Drupal 9+ projects, the add-on automatically:\n\n1. Copies `settings.ddev.dragonfly.php` to `sites/default/`\n2. Appends an include line to `settings.php`\n\nThis configures Drupal's Redis module to use DragonflyDB as the cache backend. You need the [Redis module](https://www.drupal.org/project/redis) installed and the PhpRedis PHP extension enabled (included in DDEV by default).\n\n## Comparison with ddev-redis\n\n| Feature | ddev-redis | ddev-dragonfly |\n|---------|-----------|----------------|\n| Backend | Redis | DragonflyDB |\n| Redis API compatible | Yes | Yes |\n| Memory efficiency | Standard | Better for many workloads |\n| Multi-threaded | No (single-threaded) | Yes |\n| Cluster mode | Optional | Not needed (multi-threaded) |\n| Configuration | Config files | Command-line flags |\n\nBoth add-ons use the same Drupal Redis module and PhpRedis extension. You can switch between them by removing one and installing the other.\n\n**Note:** Do not run both ddev-redis and ddev-dragonfly simultaneously — they serve the same purpose and Drupal settings will conflict.\n\n## Removal\n\n```bash\nddev add-on remove dragonfly\nddev restart\n```\n\nThis removes the DragonflyDB container and cleans up `settings.ddev.dragonfly.php` from your Drupal site if it contains the `#ddev-generated` marker.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdipakmdhrm%2Fddev-dragonfly","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdipakmdhrm%2Fddev-dragonfly","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdipakmdhrm%2Fddev-dragonfly/lists"}