MammothCache 0.0.1-alpha.1

This is a prerelease version of MammothCache.
There is a newer prerelease version of this package available.
See the version list below for details.
dotnet add package MammothCache --version 0.0.1-alpha.1                
NuGet\Install-Package MammothCache -Version 0.0.1-alpha.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="MammothCache" Version="0.0.1-alpha.1" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add MammothCache --version 0.0.1-alpha.1                
#r "nuget: MammothCache, 0.0.1-alpha.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.
// Install MammothCache as a Cake Addin
#addin nuget:?package=MammothCache&version=0.0.1-alpha.1&prerelease

// Install MammothCache as a Cake Tool
#tool nuget:?package=MammothCache&version=0.0.1-alpha.1&prerelease                

MammotCache

A caching library that provides mammoth-sized caching capabilities, just like the extinct mammoth.

More seriously though, this library is mostly a decorator that wraps existing caching frameworks and exposes a single API.

About this project

This project provides a framework agnostic ICache interface which contains a set of methods such as Set<T> and Get<T>. The project also includes implementations of the ICache, such as the InMemoryCache class.

The primary goal of this project is to decorate existing caching frameworks and abstract the underlying implementations, which may vary greatly. For instance, during development, you may want to use an in-memory cache. However, this rarely suffices for production purposes, where you might want to consider Redis, just to name one.

Without having to redesign the application, you can create a wrapper of your preferred caching framework and inject it into the application with the ICache interface.

Installation

Use the base package to use throughout your application:

dotnet add package MammothCache

In the startup class of your application, add any of the following packages:

  • MammothCache.InMemory
  • MammotCache.Redis

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change. Please make sure to update tests as appropriate.

License

License

Product Compatible and additional computed target framework versions.
.NET net7.0 is compatible.  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. 
.NET Framework net461 is compatible.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • .NETFramework 4.6.1

    • No dependencies.
  • net7.0

    • No dependencies.

NuGet packages (2)

Showing the top 2 NuGet packages that depend on MammothCache:

Package Downloads
MammothCache.Redis

A caching library that decorates the Redis cache provider.

MammothCache.InMemory

A caching library that decorates the InMemory cache provider.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
0.0.1-alpha.6 1,955 10/11/2023
0.0.1-alpha.4 5,047 3/14/2023
0.0.1-alpha.3 95 3/14/2023
0.0.1-alpha.2 94 3/14/2023
0.0.1-alpha.1 167 3/5/2023