Skip to main content

Redis

info

Connecting to the Redis database is a paid feature. Check Pricing Details to know more.

Redis (Remote Dictionary Server) is a non-relational database (NoSQL) that provides key-value pair (Key-Value) storage capabilities. Redis keeps data in memory and can ensure fast reading and writing speeds while supporting persistence, which is particularly suitable for applications requiring high performance caching, such as chat rooms, leaderboards, and real-time systems.

Connect to the Database

  1. Click on "Pre/Post Processors" in the API and select "Database Operation".

  1. Click on the "Manage Database Connection" dropdown under "Database Connection" and then click the New button in the upper right corner.

  1. Select the "Redis" database type and then fill in the corresponding connection information.

tip

Apidog attaches importance to your data security. The database address, port, username, password, database name are only stored locally on the client and will not be synced to the cloud. Even within the same team, connection information for databases will not be synced between members. Each team member needs to manually set up the database connection.

Operate the Database

Common Operations

For common database CRUD operations, Apidog provides a visual API. No coding or Redis commands are needed - just select an operation type in "Operation" and fill in the relevant content in the form to send the request. For example, to retrieve a single element from the database list, refer to the figure below to select the operation type and click Send.

With "Console Log" enabled, the result can be viewed in the console.

Advanced Commands

If more advanced operations are needed, Apidog also supports directly running Redis advanced commands. Switch to the "Run Redis Command" tab and input the specific Redis command to run. For the querying example above, you can also directly run the equivalent Redis command to get the result: