Redis
The open source, in-memory data store used as a database, cache, streaming engine, and message broker
Official Websitehttps://redis.io/
TagsDatabaseCache
- JavaScript
- Python
Documentationhttps://github.com/redis/node-redis
NodeJS packagehttps://www.npmjs.com/package/redis
Version4.6.12
Source Codehttps://github.com/redis/node-redis
Documentationhttps://redis.readthedocs.io/en/stable/
Pypi packagehttps://pypi.org/project/redis/
Version5.0.1
Source Codehttps://github.com/redis/redis-py
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.
- JavaScript
- Python
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")
Integration
New integration from credential
redis = yepcode.integration.redis('credential-slug')
New integration from plain authentication data
import redis
redis = redis.Redis(
host='the-host',
port=the-port,
username='the-username',
password='the-password',
db=theDatabaseNumber,
decode_response=True
)
redis.ping()
Set a New Entry
Set a new entry
redis.set('the-key', 'the-value')
Get Entry
Get entry
redis.get('the-key')
Delete Entry
Delete entry
redis.delete('the-key')