Skip to main content

Redis

The open source, in-memory data store used as a database, cache, streaming engine, and message broker

Official Websitehttps://redis.io/
TagsDatabaseCache
Network Connection needs

This integration needs network access to the server where the service is running.

See the Network access page for details about how to achieve that.

Credential configuration

To configure this credential, you need the host, port, username, password and database to connect to redis.

Optionally, you can configure additional parameters found here.

Here is an example of a filled credential configuration form in YepCode:

Redis Snippets available in Editor

note

The title is the triggering text for YepCode to autocomplete the script.

Integration

New integration from credential
const redis = await yepcode.integration.redis('credential-slug')
New integration from plain authentication data
const { createClient } = require("redis");

const redis = createClient({
url: "the-url", /* protocol://host:port */
username: "the-username",
password: "the-password",
database: theDatabaseNumber
});

redis.on("error", console.error);
await redis.connect();

Set a New Entry

Set a new entry
await redis.set("the-key", "the-value")

Get Entry

Get entry
await redis.get("the-key")

Delete Entry

Delete entry
await redis.del("the-key")