Projects allow organizing groups of services under different topics and each project can for example have different billing settings. An empty project is created for you automatically when you sign-up and the free credits are attached to this project. You can create new projects by clicking the project name in the left side-bar and selecting "Create a new project". The same menu can also be used to switch between projects.

To get started with Aiven Redis, first click the "Create a new service" button.

The dialog that opens allows you to specify the main service properties:

  • Service name: A short name for the service used to distinguish it from other services. A random name is provided, but you can type in a more friendly name.

  • Service type: Select "Redis".

  • Plan: How many servers and what kind of memory/CPU/disk resources will be allocated to run your service. Note that the single-node "Hobbyist" and "Startup" plans are not recommended for applications where durability of the data is essential. Select one of the "high availability" plans for speedy recovery and best protection against data loss against critical node failures.

  • Cloud: Which cloud and region to run the service on. Note that the pricing of the same service may differ between cloud providers and their regions.

After making the selections, click the "Create" button and you will be taken back to the service list view and the newly created service is shown with an indicator that it is being created.

Click the service name in the list and the "Overview" information page for the service opens. This view shows the connection parameters for your service, its current status and allows making changes to the service.

The "Status" indicator will say "Rebuilding" while the service is being created for you. Once the service is up and running, the light will change to green and it will say "Running". Note that while typically services start in a couple of minutes, the performance between clouds varies and it can take longer under some circumstances.

Do note that by default Aiven Redis uses SSL encryption for connections, most Redis clients should work just fine with SSL but if you have a Redis client library which does not support turning off SSL you can consult this support article on how to do that.


Redis backups are taken every twelve hours and are encrypted and stored securely in object storage.

C# example

This example uses the C# StackExchange.Redis library.

using System;
using StackExchange.Redis;

namespace aiven_redis_example
    class Program
        static void Main(string[] args)
            var options = new ConfigurationOptions
                  EndPoints = { "" },
                  Password = "zcs7cejsveqccri9",
                  Ssl = true
            ConnectionMultiplexer muxer = ConnectionMultiplexer.Connect(options);
            IDatabase conn = muxer.GetDatabase();

            conn.StringSet("foo", "bar");
            var value = conn.StringGet("foo");

            Console.WriteLine("Succeeded in writing data and fetching it back");

Javascript example

Uses ioredis Javascript client library to interact with Redis server.


  • Install node.js using one of yum, apt-get, brew, dmg, etc.,

Then install ioredis using,
$ npm install ioredis

Code to connect to Redis server using TLS.

var Redis = require('ioredis');
var redis = new Redis({
  port: yourport,
  host: 'yourserver',
  password: 'yourpassword',
  tls: true,

redis.set('foo', 'bar');
redis.get('foo', function (err, result) {

Java example

Uses the following redis client library. The example shows the dependency you can include in the maven pom.xml file. 


Code client example

public static void main(String[] args) {
try {
      RedisClient redisClient = new RedisClient(RedisURI.create("rediss://yourpassword@yourserver:yourport");
  RedisConnection<String, String> connection = redisClient.connect();
  System.out.println("Connected to Redis using SSL");
  connection.set("foo", "bar");
} catch (Exception e) {

Python example

This example uses the Python redis library.

from redis import Redis
uri = "copypaste the url from the console here"
redis_client = Redis.from_url(uri)
redis_client.set("mykey", "my value")

Executable Examples  

See the examples repository for executable examples in a number of programming languages.

Got here by accident? Learn how Aiven simplifies managing Redis in the Cloud:

Did this answer your question?