Skip to content

Memcached

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

Quick Start

Start Memcached with Endor:

Terminal window
endor run memcached

Or using npx without installing:

Terminal window
npx @endorhq/cli run memcached

Connection Details

Once running, Memcached will be available on:

  • Host: localhost
  • Port: 11211 (default Memcached port)
  • Protocol: TCP/UDP
  • Memory: 64MB default cache size

What’s Included

The Memcached service runs on Alpine Linux and includes:

  • Memcached Server: Latest stable version
  • High performance: Optimized for caching operations
  • Memory management: Efficient LRU eviction
  • Network protocol: Standard Memcached protocol support

Usage Examples

Connect to Memcached

  1. 1

    Start the Memcached service:

    Terminal window
    endor run memcached
  2. 2

    Connect using telnet for testing:

    Terminal window
    telnet localhost 11211
  3. 3

    Or connect from your application using a Memcached client library:

    // Node.js example
    const memcached = new Memcached('localhost:11211');

AI Agent Integration

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

  • Store and retrieve cached data
  • Monitor cache performance
  • Test caching strategies
  • Configure cache settings

Learn more about MCP integration.