DistributedMemm.Lib 1.0.1

dotnet add package DistributedMemm.Lib --version 1.0.1
                    
NuGet\Install-Package DistributedMemm.Lib -Version 1.0.1
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="DistributedMemm.Lib" Version="1.0.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="DistributedMemm.Lib" Version="1.0.1" />
                    
Directory.Packages.props
<PackageReference Include="DistributedMemm.Lib" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add DistributedMemm.Lib --version 1.0.1
                    
#r "nuget: DistributedMemm.Lib, 1.0.1"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package DistributedMemm.Lib@1.0.1
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=DistributedMemm.Lib&version=1.0.1
                    
Install as a Cake Addin
#tool nuget:?package=DistributedMemm.Lib&version=1.0.1
                    
Install as a Cake Tool

DistributedMemm: Distributed Memory Caching using RabbitMQ

Introduction

DistributedMemm is a C# library designed to provide distributed memory caching capabilities for .NET applications. By leveraging the power of RabbitMQ, this library ensures seamless data synchronization between multiple applications. In the event of cache data loss, DistributedMemm provides data recovery features using MongoDB.

Features

  • Distributed Caching: Extend the benefits of in-memory caching across multiple applications or instances.
  • Data Synchronization: Using RabbitMQ, DistributedMemm ensures that data changes are broadcast and synchronized across all connected applications.
  • Idempotency: Ensures that operations are processed once and only once, preventing duplicate data and actions.
  • Data Recovery: With the backup mechanism in MongoDB, applications can restore their memory cache on startup, ensuring minimal downtime and data loss.
  • Integrated API: An additional API that consumes RabbitMQ events to maintain and update MongoDB backup data.

Prerequisites

  • .NET Core or .NET 6+
  • RabbitMQ Server
  • MongoDB (if persist option enabled)

Installation

[Provide steps or code snippets to install and set up the library in a project]

Quick Start

  1. Configuration: Set up your RabbitMQ and MongoDB configurations.

    var config = new DistriCacheConfig
    {
        RabbitMQConnectionString = "YOUR_RABBITMQ_CONNECTION_STRING",
        MongoDBConnectionString = "YOUR_MONGODB_CONNECTION_STRING"
    };
    
  2. Initialize DistributedMemm:

    private readonly IDistributedMemm _distributedMemm;
    
    public TestService(IDistributedMemm distributedMemm)
    {
        _distributedMemm = distributedMemm;
    }
    
  3. Usage:

    _distributedMemm.Add("key", "value");
    _distributedMemm.Add("key", new { Name = "jhon", SurName = "doe" });
    var value = _distributedMemm.Get("key");
    

Data Recovery

In case application restarts our library will try to restore data by calling reserve api.

Contributing

We welcome contributions! Please see our CONTRIBUTING.md for details.

License

This project is licensed under [LICENSE NAME]. See the LICENSE file for details.

Product Compatible and additional computed target framework versions.
.NET net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.1 265 10/8/2023
1.0.0 216 10/8/2023