Categories: BlogCanonicalUbuntu

Valkey is now included in Ubuntu

Valkey is now included in ubuntu 2

In pursuit of open source sustainability, Canonical is a committed contributor to the development of Valkey. Following our mission to amplify the impact of open source and enable a broad diversity of open source communities to collaborate under the Ubuntu umbrella, we’re pleased to announce that Valkey

Sponsored
is now included in Ubuntu. Valkey is included in Ubuntu 24.10 (Oracular Oriole) and Ubuntu 24.04 LTS (Noble Nombat) and will be included in future releases. 

This inclusion in Ubuntu 24.10 and 24.04 LTS marks a significant step forward – enabling simpler availability and continuous supportability for Valkey, the open source, in-memory data store, in the Ubuntu ecosystem.” – Christian Ehrhardt, Engineering Director of Ubuntu Server.

With Valkey now available in Ubuntu, the operating system’s user base can readily install the software directly from the Ubuntu Universe repository. We’re pleased to add Valkey to the Ubuntu ecosystem. 

What is Valkey?

Valkey is an open source (BSD 3-Clause License), high-performance key/value data store capable of supporting  workloads such as caching, in-memory database, message queueing, and leaderboards. It can operate as either a standalone server or in a cluster, offering replication options that guarantee high availability and data redundancy.

Valkey natively supports a rich collection of data types, including strings, numbers, hashes, lists, sets, sorted sets, bitmaps, hyperloglogs and more. You can operate on data structures in-place with an expressive collection of commands. Valkey also supports native extensibility with built-in scripting support for Lua and supports module plugins to create new commands, data types, and more.

Valkey use cases

Valkey can be used in many circumstances. For instance, Valkey is a suitable option if you operate an e-commerce website requiring a database to manage high traffic, an expanding product catalog, and large transaction volumes. As an in-memory database, it provides ultra fast performance, a scalable architecture, high availability, and real-time updates, making it well suited to modern web applications.

Valkey can also be used to improve query performance by caching frequently accessed data, thereby reducing the load on your primary database and ensuring faster data retrieval. Additionally, it can be used for session management, offering fast and dependable access to user sessions, and is suitable for real-time analytics to support processing and response to live data streams with minimal latency.

Get started with Valkey

Once Valkey is installed in your system (`apt-get install valkey`), its daemon will be running automatically, and your application will be able to connect and interact with it. Users can do that with Valkey’s CLI or one of the bindings for multiple programming languages we have available.

Sponsored

Use Valkey in the Command Line Interface (CLI):

$ valkey-cli -h 127.0.0.1 -p 6379 GET  
$ valkey-cli -h 127.0.0.1 -p 6379 GET 

The options passed to the CLI above are:

  • `-h`: receives the IP address of the host running the server, in this case it is localhost;
  • `-p`: receives the port that the service is binded to, and by default Valkey runs on port 6379;
  • `SET`: sets a key/value, and receives the key name and its value;
  • `GET`: command to read the value of a given key.

The current Valkey version in Ubuntu is fully compatible with Redis last open source version. Any  Redis library can be used to connect and interact with a Valkey server  using a python library (`apt-get install python3-redis`), for instance. 

Python
import redis as valkey
client = valkey.StrictRedis(host='127.0.0.1', port=6379)
client.set('key1', 'value1')
print('key1.value :', client.get('key1'))
Watch the Valkey Developer Day 2024 talk
Ubuntu-based Valkey for Linux and Kubernetes Environments

Contribute to the community

Open source projects like Valkey and Ubuntu thrive because of the contributions of passionate developers, sysadmins, and users. By running Valkey on Ubuntu, you’re not only benefiting from a powerful data management system, but you’re also joining a community of like-minded individuals dedicated to improving the tool and the platform it runs on.

If you’re interested in contributing, there are several ways to get involved:

By contributing to the Valkey and Ubuntu communities, you’re playing a role in shaping the future of these projects, ensuring they remain powerful, secure, and accessible tools for everyone.

We look forward to seeing what you achieve with Valkey on Ubuntu. 

Additional resources

Ubuntu Server Admin

Recent Posts

How to Install Google Cloud BigQuery Python client library on Linux

In this article, we will see how to Install Google Cloud BigQuery Python client library…

21 hours ago

Wallpaper Contest for Xfce 4.20 open for voting

Nov 15,2024 Wallpaper Contest for Xfce 4.20 open for voting The submission phase for the…

22 hours ago

Canonical announces the first MicroCloud LTS release

MicroCloud 2.1.0 LTS is now available, expanding the number of Canonical infrastructure solutions with a…

2 days ago

Join Canonical in Paris at Dell Technologies Forum

Canonical is thrilled to be joining forces with Dell Technologies at the upcoming Dell Technologies…

3 days ago

Bringing automation to open source 5G software at Ubuntu Summit 2024

In today’s massive private mobile network (PMN) market, one of the most common approaches to…

4 days ago

Ubuntu Weekly Newsletter Issue 865

Welcome to the Ubuntu Weekly Newsletter, Issue 865 for the week of November 3 –…

5 days ago