redis_pubsub

redis_pubsub #

Description #

The redis filter is used to store received requests and response results to Redis message queues.

Configuration Example #

A simple example is as follows:

flow:
  - name: redis_pubsub
    filter:
      - redis_pubsub:
          host: 127.0.0.1
          port: 6379
          channel: gateway
          response: true

Parameter Description #

NameTypeDescription
hoststringRedis host name, which is localhost by default.
portintRedis port ID, which is 6379 by default.
passwordstringRedis password
dbintDefault database of Redis, which is 0 by default.
channelstringName of a Redis message queue. It is mandatory and has no default value.
responseboolWhether the response result is contained. The default value is true.