Repository navigation
feat: add the dragonfly cache preset - #46
Merged
Merged
Conversation
Dragonfly is a Redis-compatible in-memory store, added as a cache preset next to valkey. It speaks the Redis protocol on 6379 inside the container and is published on 6381 so it coexists with the redis and valkey presets, and it wires the same REDIS_HOST, CACHE_STORE, SESSION_DRIVER and QUEUE_CONNECTION values into a linked site's .env.
Dragonfly starts one io thread per core and refuses to run unless it has 256MiB for each, so on a 32 thread machine it asked for 8GiB, found less free and exited, and systemd gave up after five restarts. Two threads and a 1GiB cap are plenty for local work. The image is also pinned to an exact tag, so update_strategy: minor lets lerd offer the next release.
The preset now ships the Dragonfly dragonfly as a monochrome mark instead of the generic bolt glyph, with the wordmark removed so only the square logo is left, and the README logo is regenerated from it.
The preset declared #6d28d9, a violet that is not in Dragonfly's logo. It now uses #5a3ee0, the purple the logo itself starts from, in the preset, both indexes and the README tile.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds Dragonfly as a cache option next to redis, valkey and memcached. It is a Redis-compatible in-memory store, so a linked site gets the same REDIS_HOST, CACHE_STORE, SESSION_DRIVER and QUEUE_CONNECTION wiring valkey uses.
It listens on 6379 inside the container and is published on 6381, so all three Redis-protocol presets can run side by side on the host. The image is pinned to the official ghcr.io build, since the Docker Hub repo stopped at v1.27.1 and docker.dragonflydb.io is not a registry. There is no brand mark yet, so it uses the bolt glyph in the cache tint, like memcached.