Skip to content

Redis

Launch a Redis cache server in seconds with Endor CLI. Get a fully configured Redis instance running in an isolated Alpine Linux container.

Quick Start

Start Redis with Endor:

Terminal window
endor run redis

Or using npx without installing:

Terminal window
npx @endorhq/cli run redis

Connection Details

Once running, Redis will be available on:

  • Host: localhost
  • Port: 6379 (default Redis port)
  • Protocol: Redis protocol (RESP)
  • Authentication: No password required

What’s Included

The Redis service runs on Alpine Linux and includes:

  • Redis Server: Latest stable version
  • In-memory storage: High-performance key-value store
  • Data structures: Strings, hashes, lists, sets, sorted sets
  • Persistence: Configurable data persistence options

Usage Examples

Connect to Redis

  1. 1

    Start the Redis service:

    Terminal window
    endor run redis
  2. 2

    Connect using the Redis CLI:

    Terminal window
    redis-cli -h localhost -p 6379
  3. 3

    Or connect from your application using a Redis client library:

    // Node.js example
    const redis = require('redis');
    const client = redis.createClient({
    host: 'localhost',
    port: 6379
    });

AI Agent Integration

This Redis instance integrates seamlessly with AI agents through Endor’s MCP interface. Your AI assistant can:

  • Store and retrieve cached data
  • Manage session data
  • Implement pub/sub messaging
  • Configure data expiration

Learn more about MCP integration.