DB::REDIS
Establish connection to Redis.
Syntax
resources:
<resource-id>:
type: DB::REDIS
props:
connectionString: "redis://:<redis-password>@<redis-host>:<redis-port>"
Properties
Property | Description | Type |
---|---|---|
<resource-id> | Unique identifier for the resource | string |
type | Type of the resource | string |
props | Properties specific to this resource. Refer to props section for more details. | object |
props
Property | Description | Type | Required |
---|---|---|---|
connectionString | Redis connection | string | true |
Example
resources:
redisDb:
type: DB::REDIS
props:
connectionString: "redis://:password123@localhost:6379"