Why You Should Use Valkey Instead of Redis

302 words
2 minutes
Why You Should Use Valkey Instead of Redis

What Happened to Redis?#

Redis for a long time was provided under the BSD License, which basically meant people could do whatever they wanted as long as they kept the License copy and attributions. Several other licensing changes happened over the year, but the big one was in 2024, where they relicensed 7.4 with RSAL and SSPL.

This left people hesitant to continue using Redis because people who write proprietary code probably would find it cumbersome to have to rewrite code in a way that isn’t proprietary because the license forces people to contribute back to the project.

It also restricts commercial use entirely, which meant that big companies were most likely not going to be contributing back at all anymore, and perhaps moving to better solutions.

Dismissing Redis to Simplify the Stack#

A good number of projects also realized that using Redis wasn’t really necessary for their needs. As PostgreSQL improves in performance over the years, people started to even use it as a Time Series Database.

Rise of Valkey#

valkey-io
/
valkey
Waiting for api.github.com...
00K
0K
0K
Waiting...

Valkey rose after the introduction of the new licenses, and it was created in a way to be very simple to migrate from an existing instance… unless you were someone like me who didn’t bother doing it until redis 8.

Here’s a list of projects that I now have moved over to using valkey (even if they do not support it explicitly)

https://github.com/LogicLabs-OU/OpenArchiver

Make sure to use REDIS_PASSWORD to set the password.

https://github.com/immich-app/immich

Use REDIS_DBINDEX to set the db_num of your instance.

https://github.com/Freika/dawarich

Set REDIS_URL without the db_num
Then set
RAILS_CACHE_DB
RAILS_JOB_QUEUE_DB
RAILS_WS_DB
to the db num you want to use.

https://github.com/nextcloud/server

In your php config, it'll look something like this
$CONFIG = array (
'memcache.local' => '\\OC\\Memcache\\APCu',
'memcache.distributed' => '\\OC\\Memcache\\Redis',
'memcache.locking' => '\\OC\\Memcache\\Redis',
'redis' =>
array (
'host' => 'valkey',
'port' => 6379,
'password' => 'password',
'dbindex' => 5,
),
...

https://github.com/outline/outline

Set REDIS_URL to redis://:password@valkey:6379/{db_num}

Share Article

If this article helped you, please share it with others!

Why You Should Use Valkey Instead of Redis
https://dahn.me/posts/valkey/
Author
Daniel Ahn
Published at
2026-01-27
License
CC BY-NC-SA 4.0
Profile Image of the Author
Daniel Ahn
いい元気だね、何かいいことでもあったのかい?
Announcement
This page is a work-in-progress. Thanks for checking it out!
Music
Cover

Music

No playing

0:00 0:00
No lyrics available
Categories
Tags
Site Statistics
Posts
5
Categories
2
Tags
18
Total Words
12,113
Running Days
0 days
Last Activity
0 days ago

Table of Contents