Getting started
If you want to get up and running with Redis quickly without needing to build from source, use one of the following methods:
- Redis Cloud
- Official Redis Docker images (Alpine/Debian)
docker run -d -p 6379:6379 redis:latest - Redis binary distributions
- Redis quick start guides
If you prefer to build Redis from source - see instructions below.
Redis starter projects
To get started as quickly as possible in your language of choice, use one of the following starter projects:
- Python (redis-py)
- C#/.NET (NRedisStack/StackExchange.Redis)
- Go (go-redis)
- JavaScript (node-redis)
- Java/Spring (Jedis)
Using Redis with client libraries
To connect your application to Redis, you will need a client library. Redis has documented client libraries in most popular languages, with community-supported client libraries in additional languages.
- Python (redis-py)
- Python (RedisVL)
- C#/.NET (NRedisStack/StackExchange.Redis)
- JavaScript (node-redis)
- Java (Jedis)
- Java (Lettuce)
- Go (go-redis)
- PHP (Predis)
- C (hiredis)
- Full list of client libraries
Using Redis with redis-cli
redis-cli is Redis’ command line interface. It is available as part of all the binary distributions and when you build Redis from source.
You can start a redis-server instance, and then, in another terminal try the following:
cd src
./redis-cli
redis> ping
PONG
redis> set foo bar
OK
redis> get foo
"bar"
redis> incr mycounter
(integer) 1
redis> incr mycounter
(integer) 2
redis>
Using Redis with Redis Insight
For a more visual and user-friendly experience, use Redis Insight - a tool that lets you explore data, design, develop, and optimize your applications while also serving as a platform for Redis education and onboarding. Redis Insight integrates Redis Copilot, a natural language AI assistant that improves the experience when working with data and commands.