DEV Community

Alex Spinov
Alex Spinov

Posted on

Valkey Has a Free API: The Community Fork of Redis With No License Restrictions

Why Valkey

When Redis changed to a non-open-source license, the Linux Foundation forked it as Valkey. Same Redis you know, but truly open source (BSD license) with backing from AWS, Google, Oracle, and Ericsson.

Install

# Docker
docker run -d -p 6379:6379 valkey/valkey:latest

# From source
git clone https://github.com/valkey-io/valkey.git
cd valkey && make && make install
Enter fullscreen mode Exit fullscreen mode

100% Redis Compatible

# Same CLI, same commands
valkey-cli
SET key value
GET key
HSET hash field value
LPUSH list item
SADD set member
ZADD sorted_set 1 member
Enter fullscreen mode Exit fullscreen mode

Use Any Redis Client

import Redis from 'ioredis';

const client = new Redis({ host: 'localhost', port: 6379 });
await client.set('user:1', JSON.stringify({ name: 'Alice' }));
const user = JSON.parse(await client.get('user:1'));
Enter fullscreen mode Exit fullscreen mode
import redis

r = redis.Redis(host='localhost', port=6379)
r.set('user:1', '{"name": "Alice"}')
user = r.get('user:1')
Enter fullscreen mode Exit fullscreen mode

What Valkey Adds

  • Dual-channel replication — faster replica sync
  • Over-memory eviction — better memory management
  • Performance improvements — community-driven optimizations
  • True BSD license — no restrictions, no surprises

Key Features

  • Redis drop-in — same protocol, same commands
  • BSD license — truly open source
  • Linux Foundation — backed by major cloud providers
  • Active development — new features from community
  • Cluster mode — same Redis Cluster support

Resources


Need to extract database data, cache metrics, or key-value store configs? Check out my Apify tools or email spinov001@gmail.com for custom solutions.

Top comments (0)