Dragonfly
Database / data tool · Free + paid
An in-memory datastore with a Redis-compatible API: it provides a backend foundation for caching and fast data structures under separate source-available terms.
Also known as: dragonflydb/dragonfly; dragonfly-db; redis-replacement; memcached-replacement

What you can use for free
Non-production use and your own product within the Additional Use Grant.
Paid features and costs
Offering a competing datastore Service requires a commercial license; managed hosting is paid for separately.
Access and limitations
Non-production use and your own product within the Additional Use Grant. Offering a competing datastore Service requires a commercial license; managed hosting is paid for separately.
Use cases
- Add a Redis-compatible cache to a backend
- Connect a Redis-compatible client and test cache writes, reads, and expiration
Example workflow
A possible workflow; this is not a report of hands-on testing.
Add a Redis-compatible cache to a backend.
Before you start
- A schema, test dataset, and queries.
- A supported database or runtime.
Steps
- Identify data to cache and define its lifetime.
- Connect a Redis-compatible client and test cache writes, reads, and expiration.
- Check schema changes, indexes, and data recovery.
Check your result
- Query results match the reference data.
- Check access permissions, backup recovery, and load before production use.
Choosing Dragonfly
Add a Redis-compatible cache to a backend
Choose this when
- Add a Redis-compatible cache to a backend
- Connect a Redis-compatible client and test cache writes, reads, and expiration
Things to consider
- Costs and limits of free use: Offering a competing datastore Service requires a commercial license; managed hosting is paid for separately.
- Terms of use: Business Source License 1.1; the own-product grant excludes in-memory datastores and competing managed Services. Change Date 2030-11-01, Change License Apache-2.0.
- The HTTP console is intended for a secure network; the README recommends disabling it when the TCP port is externally accessible.
Frequently asked questions
What can you use for free in Dragonfly?
Non-production use and your own product within the Additional Use Grant.
What additional costs might arise with Dragonfly?
Offering a competing datastore Service requires a commercial license; managed hosting is paid for separately.
What terms of use matter for Dragonfly?
Business Source License 1.1; the own-product grant excludes in-memory datastores and competing managed Services. Change Date 2030-11-01, Change License Apache-2.0.
How do you get started with Dragonfly?
Identify data to cache and define its lifetime. Connect a Redis-compatible client and test cache writes, reads, and expiration. Check schema changes, indexes, and data recovery.
How can I configure Dragonfly memory, snapshots, and console access?
maxmemory, requirepass, snapshot_cron, and a snapshots directory are available. cache_mode enables eviction near the memory limit. The Memcached API uses a separate memcached_port; the HTTP console and /metrics are available on the main port.
License
Business Source License 1.1; the own-product grant excludes in-memory datastores and competing managed Services. Change Date 2030-11-01, Change License Apache-2.0.
Custom license — this product's terms apply
The license name does not imply standard MIT or GPL rights. Its own text determines permission to modify, work commercially, distribute, and use outputs. Follow the use case stated for the product above and the primary source for its terms.
Technologies and topics
- Dragonfly
- database
- Development