REDIS
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
using BlazorCanvas.Server.Components;
|
||||
using BlazorCanvas.Server.Components.Data;
|
||||
using Microsoft.Extensions.Caching.Distributed;
|
||||
using Microsoft.Extensions.Hosting;
|
||||
|
||||
var builder = WebApplication.CreateBuilder(args);
|
||||
@@ -9,6 +10,8 @@ builder.AddServiceDefaults();
|
||||
// Add services to the container.
|
||||
builder.Services.AddRazorComponents()
|
||||
.AddInteractiveServerComponents();
|
||||
builder.AddRedisOutputCache("cache");
|
||||
//builder.AddKeyedRabbitMQ("mq");
|
||||
|
||||
builder.Services.AddScoped<CanvasService>();
|
||||
|
||||
|
Reference in New Issue
Block a user