Problem
We need to dynamically configure CacheKeyPrefix based on a service (ICachePrefixProvider) that may depend on runtime context (e.g., tenant, environment, or request-specific data).
Example
builder.Services.AddFusionCache()
.WithOptions((sp, options) =>
{
var prefixProvider = sp.GetRequiredService<ICachePrefixProvider>();
options.CacheKeyPrefix = prefixProvider.Prefix;
})