Skip to main content

Documentation Index

Fetch the complete documentation index at: https://mintlify.com/redis/redis/llms.txt

Use this file to discover all available pages before exploring further.

To connect your application to Redis, you’ll need a client library. Redis provides official and community-supported client libraries in most popular programming languages.

Official Client Libraries

Redis maintains high-quality client libraries for the following languages:

Python

redis-py - The official Python client

JavaScript

node-redis - The official Node.js client

Java

Jedis and Lettuce - Official Java clients

Go

go-redis - The official Go client

.NET

NRedisStack and StackExchange.Redis

PHP

Predis - The official PHP client

Additional Client Libraries

Redis also provides support for:

Quick Start Projects

Get started quickly with ready-to-run starter projects:
1

Choose your language

Select a starter project that matches your development stack:
2

Clone and run

Each starter project includes:
  • Connection examples
  • Basic CRUD operations
  • Best practices
  • Ready-to-run code samples

What Client Libraries Provide

Redis client libraries offer:
  • Connection Management - Handle connections, connection pooling, and reconnection logic
  • Command API - Type-safe methods for all Redis commands
  • Data Type Support - Native support for Redis data structures (strings, hashes, lists, sets, sorted sets, JSON, streams)
  • Advanced Features - Support for pipelining, transactions, pub/sub, and Lua scripting
  • Query Engine - Full-text search, vector search, and aggregations
  • Error Handling - Proper error handling and timeout management

Choosing a Client

When selecting a client library:
Use official Redis client libraries when possible. They are actively maintained, well-documented, and support the latest Redis features.
Consider:
  • Language ecosystem - Choose the client for your programming language
  • Features needed - Ensure support for Redis modules (JSON, Search, TimeSeries) if required
  • Performance requirements - Some clients offer better performance for specific use cases
  • Async support - Check if you need asynchronous/non-blocking operations

Connection Methods

All Redis clients support multiple connection methods:
  • Direct connection - Connect to a single Redis instance
  • TLS/SSL - Secure connections with encryption
  • Sentinel - High availability with automatic failover
  • Cluster - Distributed Redis deployments
  • Cloud - Connect to Redis Cloud with optimized settings

Next Steps

Get Started with Python

Learn how to use redis-py

Get Started with JavaScript

Learn how to use node-redis

Get Started with Java

Learn how to use Jedis or Lettuce

Get Started with Go

Learn how to use go-redis