APIs
An overview of Redis APIs for developers and operators
Redis provides a number of APIs for developers and operators. The following sections provide you easy access to the client API, the several programmability APIs, the RESTFul management APIs and the Kubernetes resource defintions.
APIs for Developers
Client API
Redis comes with a wide range of commands that help you to develop real-time applications. You can find a complete overview of the Redis commands here:
As a developer, you will likely use one of our supported client libraries for connecting and executing commands.
Programmability APIs
The existing Redis commands cover most use cases, but if low latency is a critical requirement, you might need to extend Redis' server-side functionality.
The triggers and functions feature of Redis Stack and Redis Enterprise provide a solid way to run JavaScript functions inside Redis. Functions can be invoked based on triggers, which means that the client doesn't need to call for the execution of server-side business logic explicitly.
Lua scripts have been available since early versions of Redis. With Lua, the script is provided by the client and cached on the server side, which implies the risk that different clients might use a different script version.
The Redis functions feature, which became available in Redis 7, supersedes the use of Lua in prior versions of Redis. The client is still responsible for invoking the execution, but unlike the previous Lua scripts, functions can now be replicated and persisted.
If none of the previous methods fulfills your needs, then you can extend the functionality of Redis with new commands using the Redis Modules API.
APIs for Operators
Redis Cloud API
Redis Cloud is a fully managed Database as a Service offering and the fastest way to deploy Redis at scale. You can programmatically manage your databases, accounts, access, and credentials using the Redis Cloud REST API.
Redis Enterprise Software API
If you have installed Redis Enterprise Software, you can automate operations with the Redis Enterprise REST API.
- Redis Enterprise Software REST API introduction
- Redis Enterprise Software REST API requests
- Redis Enterprise Software REST API objects
Redis Enterprise for Kubernetes API
If you need to install Redis Enterprise on Kubernetes, then you can use the Redis Enterprise for Kubernetes Operators. You can find the resource definitions here: