Skip to content

๐Ÿ˜ Caching decorators for commonly-used caching providers

License

Notifications You must be signed in to change notification settings

dimesoftware/mammoth-cache

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

24 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Because elephantidae never forget
ย 

Mammoth Cache

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

More seriously though, this library is mostly a decorator that decorates 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.

Build and Test

  • Run dotnet restore
  • Run dotnet build
  • Run dotnet test

Installation

dotnet add package MammothCache

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