New to Valkey? This guide walks you through the basics and helps you get up and running.

Starting with new tech can feel overwhelming, but if you’re ready to explore Valkey, you probably want answers, not some fancy sales pitch.

Let’s cut to the chase: Switching tools or trying something new should never slow you down, and Valkey isn’t going to do that.

Valkey is here to give you options, not obstacles. After all, Valkey is open source and community-driven, and it has quickly become a practical choice for teams that want control without headaches.

This post is for anyone who likes to roll up their sleeves and get things working. You’ll find simple steps to get Valkey up and running, along with some quick tips to help you feel at home. We’ll keep it straightforward and actionable, so you can spend less time hunting for answers and more time getting results.

Ready to see what Valkey can do for you?

What is Valkey?

Valkey is a modern, open source data store that keeps things simple. If you’ve used Redis, you’ll feel right at home. Valkey lets you store and retrieve data at high speed, whether you’re powering real-time dashboards, caching, or just need something dependable behind the scenes.

The big difference? Valkey is genuinely open source, governed by the Linux Foundation, released under a BSD license, and backed by a community that believes in keeping things open. For everyone.

Translation: No messy licensing. No vendor tricks. No surprises down the road.

If you’re looking for a tool that’s fast, familiar, built on open principles, and has comparable enterprise Redis features, Valkey is an easy choice. You gain the freedom to build, experiment, and scale without worrying about lock-in or unexpected changes. It’s a solid foundation you can count on, whether you’re starting fresh or making a switch.

Why choose Valkey over other options?

True open source freedom: With its BSD license and Linux Foundation governance, Valkey offers genuine open source benefits: no vendor lock-in, predictable costs, and complete strategic control over your infrastructure.

Expert performance: Built by experienced former Redis maintainers with backing from industry leaders like AWS, Google Cloud, and Percona, Valkey delivers proven performance with continuous innovation.

Drop-in compatibility: Valkey maintains compatibility with Redis, making migration straightforward and offering the peace of mind that comes with true open source licensing.

Quick start: Installing Valkey

The fastest way to get Valkey running? Docker. Here’s how to get started in under two minutes:

Option 1: Docker installation (Recommended for testing)

Option 2: System installation

For production environments, you’ll want to install Valkey directly on your system:

Ubuntu/Debian:

Fedora/RHEL:

You should see the Valkey prompt: 127.0.0.1:6379> 

Your first Valkey commands

Now that you’re connected, let’s explore what makes Valkey so powerful. At its core, Valkey stores key-value pairs, but it also supports several sophisticated data types.

Working with strings

Strings are the most basic data type, perfect for caching simple values:

Working with numbers

Valkey automatically, and atomically, handles numeric operations:

Working with lists

Lists are perfect for queues, recent activity feeds, or ordered collections:

Working with Hashes

Hashes are ideal for storing objects with multiple fields:

Common use cases to get you started

1. Database query caching

2. Session management

3. Rate limiting

4. Real-time analytics

Essential commands to remember

Here are the most important commands you’ll use regularly:

Data operations:

  • SET key value  – Store a string value
  • GET key – Retrieve a value
  • DEL key  – Delete a key
  • EXISTS key  – Check if key exists
  • EXPIRE key seconds  – Set expiration time

Information commands:

  • KEYS pattern  – Find keys (use sparingly in production)
  • TYPE key  – Get the data type of a key
  • TTL key  – Check remaining time to live
  • INFO  – Server information and statistics

List operations:

  • LPUSH/RPUSH key value  – Add to list
  • LPOP/RPOP key  – Remove from list
  • LRANGE key start stop  – Get range of list elements

Performance tips for beginners

  1. Use appropriate data types: Don’t store JSON strings when hashes would be more efficient. For native JSON usage in Valkey, check out the valkey-json module.
  2. Set expiration times: Prevent memory bloat with EXPIRE  or SETEX 
  3. Avoid large keys: Keep individual keys under a few MB for best performance. While Valkey can store values up to 512MB, large values can block the server and cause latency. Keep key names short: user:1001  is better than long:descriptive:key:name:for:user:1001.
  4. Use connection pooling: In production applications, always use connection pooling
  5. Monitor memory usage: Use INFO memory  to track memory consumption

Next steps: Production-ready configuration

While this guide gets you started with Valkey basics, running Valkey in production requires careful configuration, security hardening, backup strategies, and performance tuning. 

For comprehensive coverage of these critical production topics, check out our Valkey Configuration and Best Practices Guide. This detailed resource walks you through enterprise-grade Valkey deployments, complete with configuration examples, monitoring strategies, and migration guidance.

Where to go from here (and how we can help)

Valkey offers a powerful, truly open source solution for in-memory data storage. With its familiar Redis-compatible API, strong performance characteristics, and freedom from licensing restrictions, it’s an excellent choice for modern applications requiring fast data access.

Start experimenting with the commands in this guide, then advance to our comprehensive guide to build production-ready Valkey deployments with confidence. And if you have questions or run into anything unexpected, we’re always here to help.

Ready to go deeper? Read the Valkey Configuration and Best Practices Guide to learn more.

Valkey Configuration

Subscribe
Notify of
guest

0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments