Aspire.Hosting.Redis
Official
📦 Aspire.Hosting.Redisv13.6.014Functions
3Types
3 types and 8 members
Types
Functions
method
addRedisbuilderAdds a Redis container to the application model.
addRedis(name: string, port?: number, password?: ParameterResource): RedisResourcemethod
withDataBindMountbuilderAdds a bind mount for the data folder to a Redis container resource and enables Redis persistence.
withDataBindMount(source: string, isReadOnly?: boolean): RedisResourcemethod
withDataBindMountbuilderAdds a bind mount for the data folder to a Redis Insight container resource.
withDataBindMount(source: string): RedisInsightResourcemethod
withDataVolumebuilderAdds a named volume for the data folder to a Redis container resource and enables Redis persistence.
withDataVolume(name?: string, isReadOnly?: boolean): RedisResourcemethod
withDataVolumebuilderAdds a named volume for the data folder to a Redis Insight container resource.
withDataVolume(name?: string): RedisInsightResourcemethod
withHostPortbuilderConfigures the host port that the Redis Commander resource is exposed on instead of using randomly assigned port.
withHostPort(port: number): RedisCommanderResourcemethod
withHostPortbuilderConfigures the host port that the Redis Insight resource is exposed on instead of using randomly assigned port.
withHostPort(port: number): RedisInsightResourcemethod
withHostPortbuilderConfigures the host port that the Redis resource is exposed on instead of using randomly assigned port.
withHostPort(port: number): RedisResourcemethod
withModulebuilderConfigures the Redis resource to use the specified Redis module by providing its path inside the container.
withModule(path: string): RedisResourcemethod
withPasswordbuilderConfigures the password that the Redis resource is used.
withPassword(password: ParameterResource): RedisResourcemethod
withPersistencebuilderConfigures a Redis container resource for persistence.
withPersistence(interval?: timespan, keysChangedThreshold?: number): RedisResourcemethod
withRedisCommanderbuilderAdds Redis Commander management UI
withRedisCommander(configureContainer?: (obj: RedisCommanderResource) => Promise<void>, containerName?: string): RedisResourcemethod
withRedisInsightbuilderAdds Redis Insight management UI
withRedisInsight(configureContainer?: (obj: RedisInsightResource) => Promise<void>, containerName?: string): RedisResourcemethod
withReplbuilderAdds a REPL command that opens an authenticated Redis shell in the dashboard terminal dock.
withRepl(): RedisResource