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/
Version4.4.0
TagsDatabase, Cache
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 set any of the extra config params you can see here.

Here you have 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")