Skip to main content

DB::REDIS

Establish connection to Redis.

Syntax

resources:
<resource-id>:
type: DB::REDIS
props:
connectionString: "redis://:<redis-password>@<redis-host>:<redis-port>"

Properties

PropertyDescriptionType
<resource-id>Unique identifier for the resourcestring
typeType of the resourcestring
propsProperties specific to this resource. Refer to props section for more details.object

props

PropertyDescriptionTypeRequired
connectionStringRedis connectionstringtrue

Example

resources:
redisDb:
type: DB::REDIS
props:
connectionString: "redis://:password123@localhost:6379"