Connect with Redis client API libraries
Connect your application to a Redis database and try an example
Use the Redis client libraries to connect to Redis servers from your own code. We document the following client libraries for six main languages:
Language | Client name | Docs | Supported |
---|---|---|---|
Python | redis-py |
redis-py guide |
Yes |
Python | RedisVL |
RedisVL guide | Yes |
C#/.NET | NRedisStack |
NRedisStack guide |
Yes |
JavaScript | node-redis |
node-redis guide |
Yes |
Java | Jedis |
Jedis guide |
Yes |
Java | Lettuce |
Lettuce guide |
Yes |
Go | go-redis |
go-redis guide |
Yes |
PHP | Predis |
Predis guide |
No |
We also provide several higher-level object mapping (OM) libraries for Python, C#/.NET, Node.js, and Java/Spring.
Community-supported clients
The table below shows the recommended third-party client libraries for languages that Redis does not document directly:
Language | Client name | Github | Docs |
---|---|---|---|
C | hiredis | https://github.com/redis/hiredis | https://github.com/redis/hiredis |
PHP | PhpRedis extension | https://github.com/phpredis/phpredis | https://github.com/phpredis/phpredis/blob/develop/README.md |
Ruby | redis-rb | https://github.com/redis/redis-rb | https://rubydoc.info/gems/redis |
Rust | redis-rs | https://github.com/redis-rs/redis-rs | https://docs.rs/redis/latest/redis/ |
C++ | Boost.Redis | https://github.com/boostorg/redis | https://www.boost.org/doc/libs/develop/libs/redis/doc/html/index.html |
Requirements
You will need access to a Redis server to use these libraries. You can experiment with a local installation of Redis Stack (see Install Redis Stack) or with a free trial of Redis Cloud. To interact with a Redis server without writing code, use the Redis CLI and Redis Insight tools.