Documentation modifications
This commit is contained in:
@@ -13,6 +13,12 @@ namespace adas_core.Infrastructure.Utils
|
||||
/// </summary>
|
||||
public static class CacheHostBuilderExtension
|
||||
{
|
||||
/// <summary>
|
||||
/// Registers the cache infrastructure on the host, exposing <see cref="ICacheService"/> through a <see cref="CacheDispatcher"/> that can route to either an in-memory or Redis-backed implementation based on <see cref="CacheSettings"/>. <see cref="RedisService"/> is wired lazily so that its <see cref="RedisService.Database"/> is only resolved once the underlying connection has been established asynchronously, while <see cref="CacheService"/> is provided with an <see cref="InMemoryLockProvider"/> and <see cref="NoCacheService"/> is registered as a no-op fallback.
|
||||
/// </summary>
|
||||
/// <param name="hostBuilder">The <see cref="IHostBuilder"/> to extend with the cache service registrations.</param>
|
||||
/// <returns>The same <paramref name="hostBuilder"/> instance, configured with the cache services for fluent chaining.</returns>
|
||||
/// <!-- aidoc:v1 sig=06693b5 body=f80dd06 -->
|
||||
public static IHostBuilder UseCache(this IHostBuilder hostBuilder)
|
||||
{
|
||||
return hostBuilder.ConfigureServices((context, services) =>
|
||||
|
||||
Reference in New Issue
Block a user