Redis
Connecting to the Redis database is a paid feature. Check Pricing Details for details.
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 operating systems.
Connect to the Database
- Click on "Pre/Post Processors" in the API and select "Database Operation".
- Click on the "Manage Database Connection" dropdown on "Database Connection" and then click the New button in the upper right corner.
- Select the "Redis" database type and then fill in the corresponding connection information.
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: