Cloud API Overview > @adpt/cloud > redis > Redis
redis.Redis class
Abstract Redis component
Signature:
export declare abstract class Redis extends PrimitiveComponent implements ConnectToInstance
Remarks
This component is used to denote a needed Redis service. Users should use a style sheet to subsitute a concrete Redis instance that provides the service. redis.TestRedis() is such a component, suitable for test environments.
All implementations of this component should implmenent ConnectToInstance that provides a REDIS_URI
variable of the form redis://<hostname>:<port>
.
Methods
Method | Modifiers | Description |
---|---|---|
connectEnv(_scope) |