Skip to content
Docs Try Aspire

RedisResource Constructors

Class Constructors 2 members
A resource that represents a Redis resource independent of the hosting model.
A resource that represents a Redis resource independent of the hosting model.
public class RedisResource
{
public RedisResource(
string name)
{
// ...
}
}
name string The name of the resource.
A resource that represents a Redis resource independent of the hosting model.
Constructor(string, ParameterResource) Section titled Constructor(string, ParameterResource)
Initializes a new instance of the RedisResource class.
public class RedisResource
{
public RedisResource(
string name,
ParameterResource password)
{
// ...
}
}
name string The name of the resource.
password ParameterResource A parameter that contains the Redis server password.