Connect with Redis clients
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 support client libraries for five main languages:
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 support directly:
Language | Client name | Github | Docs |
---|---|---|---|
C | hiredis | https://github.com/redis/hiredis | https://github.com/redis/hiredis |
PHP | redis extension | https://github.com/phpredis/phpredis | https://github.com/phpredis/phpredis/blob/develop/README.md |
PHP | predis library | https://github.com/predis/predis | https://github.com/predis/predis/wiki |
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/ |
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.