Skip to content

Commit 621c6fe

Browse files
committed
docs: clarify distributed backend requirements
- note that MemoryDistributedCache is treated as non-distributed
1 parent df4946f commit 621c6fe

File tree

1 file changed

+2
-1
lines changed
  • src/CleanArchitecture.Extensions.Caching

1 file changed

+2
-1
lines changed

src/CleanArchitecture.Extensions.Caching/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@ public static void AddInfrastructureServices(this IHostApplicationBuilder builde
2929
{
3030
options.DefaultNamespace = "MyApp";
3131
options.MaxEntrySizeBytes = 256 * 1024;
32-
// Set Backend = CacheBackend.Distributed to force shared cache when IDistributedCache is configured.
32+
// Set Backend = CacheBackend.Distributed to force shared cache when a real IDistributedCache (e.g., Redis) is configured.
33+
// MemoryDistributedCache is treated as non-distributed; use Backend.Memory or Backend.Auto for single-node setups.
3334
}, queryOptions =>
3435
{
3536
queryOptions.DefaultTtl = TimeSpan.FromMinutes(5);

0 commit comments

Comments
 (0)