Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

WithRedis

Method
📦 CommunityToolkit.Aspire.Hosting.Logto v13.6.1
func (LogtoResource) WithRedis(redis RedisResource) LogtoResource

Signature

methodWithRedisbuilder
Configures the Logto resource to use a specified Redis resource for caching or other functionality.
WithRedis(redis RedisResource) LogtoResource
redisRedisResourceThe resource builder for the Redis resource to be used by the Logto resource.
LogtoResource

The resource builder configured with the specified Redis resource.

Returns a handle; failures surface later via Err().

Applies to

This method applies to the following types: