RabbitMQ backplane for FusionCache
$ dotnet add package VRT.FusionCache.Backplane.RabbitMq
FusionCache is an easy to use, fast and robust hybrid cache with advanced resiliency features. Find out more.
This package is a backplane implementation on RabbitMq based on the RabbitMQ.Client library.
To use this backplane, you need to register it in your IServiceCollection
Example of binding options from configuration:
services.AddRabbitMqBackplane(configuration.GetSection("RabbitMqBackplane").Bind)
result.AddRabbitMqBackplane(options =>
{
options.ExchangeName = "FusionCacheBackplane.events";
options.RabbitMq.HostName = "localhost";
options.RabbitMq.UserName = "admin";
options.RabbitMq.Password = "some_secret_password";
});
After registering the backplane, you can use it with FusionCache like this:
result
.AddFusionCache()
.WithRegisteredDistributedCache()
.WithRegisteredBackplane()
.WithSystemTextJsonSerializer();
:bulb: Be aware that the backplane will not be used if you do not register distributed cache.
This project is licensed under the MIT License