Skip to the page

Redis and caching · senior

Redis or Valkey: licence and choice

Redis changed its licence in 2024 and Valkey was started as a fork. Core commands work on both. A good answer names the licence facts and says to test before switching.

The notes

What you must know

  • In 2024 Redis moved from the BSD licence to source-available licences. The Linux Foundation then started Valkey from the last BSD version. Valkey stays BSD-3.
  • In 2025 Redis 8 added AGPLv3 as another option, so Redis is open source again by the OSI definition.
  • The licence mostly matters if you modify Redis and offer it over a network, or sell it as a service. Using it unchanged as a cache is usually fine, but legal should confirm your company policy.
  • Core commands and clients work with both. The differences show in newer features, such as Redis's query engine and vector search against Valkey's modules.
  • Managed services (for example Amazon ElastiCache) offer Valkey.
  • Before you switch, check the commands and modules you use, client versions, failover behaviour, performance under your load and the managed offering's features.
  • Check the current versions and licence text on the official sites, because they change often.

The red pen

Common traps: mistake → fix

  • Mistake: Redis is not open source

    Fix: since Redis 8 it is again, as one option under AGPLv3.

  • Mistake: Switch only to save money

    Fix: test compatibility and performance first.

Easy to hard

Questions interviewers ask, easy to hard

  1. Redis or Valkey for a new project?
  2. Does the licence matter for us?
  3. What would you test before moving a production cache?

Your first interview is free

Sign up and start with a 15-minute interview with the full report, and an English conversation. No card needed.

Start your free interview