Apicat Docs
  1. Database operations
Apicat Docs
  • What is Apicat?
  • Send requests
    • Create requests
      • Request basics
      • Parameters and body
      • Request headers
      • Request settings
      • Dynamic values
      • HTTP/2
      • SOAP/WebService
    • Authentication and authorization
      • Overview
      • CA and client certificates
      • Authorization types supported by Apidog
      • Digest Auth
      • OAuth 1.0
      • OAuth 2.0
      • Hawk Authentication
      • Kerberos
      • NTLM
      • Akamai EdgeGrid
    • Response and cookies
      • Overview
      • API response in Apidog
      • Create and send cookies
      • Debug requests
    • Dynamic values Modules
      • Airline
      • Animal
      • Color
      • Commerce
      • Company
      • Database
      • Datatype
      • Date
      • Finance
      • Food
      • Git
      • Hacker
      • Helpers
      • Image
      • Internet
      • Location
      • Lorem
      • Music
      • Number
      • Person
      • Phone
      • Science
      • String
      • System
      • Vehicle
      • Word
  • Environments & variables
    • Overview
    • Using variables
    • Environments & services
  • Pre/Post processors
    • Overview
    • Assertion
    • Extract variable
    • Wait
    • Database operations
      • Overview
      • MySQL
      • MongoDB
      • Redis
      • Oracle Client
    • Using scripts
      • Overview
      • Pre processor scripts
      • Post processor scripts
      • Public scripts
      • Postman scripts reference
      • Calling other programming languages
      • Using JS libraries
      • Visualizing responses
      • Script examples
        • Assertion scripts
        • Using variables in scripts
        • Using scripts to modify request messages
        • Other examples
  • Best practices
    • How to handle API signatures
    • How to access OAuth 2.0 protected APIs
    • Apidog collaboration workflow
    • Managing authentication state in Apidog
  • Account & preferences
    • Account settings
    • Generate OpenAPI access token
    • Language settings
    • Hot keys
    • Network proxy configuration
    • Data backup
    • Updating Apidog
    • Deleting account
    • Experimental Features
  • References
    • API-Design First Approach
    • Apidog OpenAPI/Swagger Specificaiton Extensions
    • JSONPath
    • XPath
    • Regular Expressions
    • JSON Schema
    • CSV File Format
    • Install Java Environment
    • Runner deployment environment
    • Apidog flavored Markdown
  1. Database operations

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#

1.
Click on "Pre/Post Processors" in the API and select "Database Operation".
1.
Click on the "Manage Database Connection" dropdown on "Database Connection" and then click the New button in the upper right corner.
3.
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:
Modified at 2025-06-25 07:57:16
Previous
MongoDB
Next
Oracle Client
Built with