Skip to main content

Redis

This section explains how to create a Redis data source in DataDios, create keys of all supported types, and verify automatic TTL-based key expiry.


Steps to Create and Manage a Redis Data Source

Step 1: Navigate to Data Sources

  1. Navigate to the DataSources tab in DataDios

  2. The listing page shows all existing data sources

    Data Sources Listing

Step 2: Select Redis Connector

  1. Click + CREATE DS

  2. From the list of available connector types, select Redis

    Redis Connector Selected

Step 3: Fill Connection Details

In the Connection Details form, provide the required parameters:

  • Host: Redis server hostname or IP address (e.g., localhost)

  • Port: Redis server port (default: 6379)

  • Password: Redis authentication password (leave empty if auth is disabled)

    Connection Form

Step 4: Test Connection

  1. After entering the details, click Test Connection

  2. If the connection details are correct, the test will return Status: OK

    Test Connection Success

Step 5: Save Data Source

  1. If the test is successful, click Create to save the data source

  2. You will be redirected to the Datasource Listing Page, where your Redis data source will appear

    Redis in DS List

Step 6: Explore and Create Redis Keys

Click View Details on the Redis data source to open the key management page.

Keys Page

DataDios supports creating four Redis key types. Click + Create Item to open the creation form for each.

STRING Key

Stores a single string value. Optionally set a TTL (in seconds) for automatic expiry.

Create STRING Key

LIST Key

Stores an ordered list of string elements. Add one or more elements in the form.

Create LIST Key

HASH Key

Stores a map of field-value pairs. Add one or more field/value pairs in the form.

Create HASH Key

SET Key

Stores an unordered collection of unique string members. Add one or more members in the form.

Create SET Key

STRING Key with TTL

To demonstrate TTL-based expiry, create a STRING key with a TTL value (e.g., 60 seconds). The key will automatically be deleted by Redis after the TTL elapses.

Create TTL Key

Step 7: Verify All Keys

After creating all keys, click Refresh to load the latest key list from Redis. All created keys appear in the listing.

All 5 Keys Present

Step 8: TTL Key Expiry

After the TTL elapses (60 seconds in this example), click Refresh again. The expired key is automatically removed by Redis and no longer appears in the list — while the four permanent keys remain intact.

After TTL Expiry — 4 Keys Remain

Supported Key Types

Key TypeDescriptionTTL Support
STRINGSingle string valueYes
LISTOrdered list of string elementsYes
HASHMap of field-value pairsYes
SETUnordered collection of unique membersYes

Connection Parameters

ParameterRequiredDefaultDescription
hostYesRedis server hostname or IP
portYes6379Redis server port
passwordNoRedis AUTH password; leave empty if auth is disabled