Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/laget-se/laget.caching
A generic implementation for caching that supports application-, request- and session-caching...
https://github.com/laget-se/laget.caching
application-cache cache nuget request-cache session-cache
Last synced: 22 days ago
JSON representation
A generic implementation for caching that supports application-, request- and session-caching...
- Host: GitHub
- URL: https://github.com/laget-se/laget.caching
- Owner: laget-se
- License: apache-2.0
- Created: 2021-04-21T06:58:57.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2024-10-22T06:49:13.000Z (2 months ago)
- Last Synced: 2024-10-23T09:44:48.937Z (2 months ago)
- Topics: application-cache, cache, nuget, request-cache, session-cache
- Language: C#
- Homepage:
- Size: 98.6 KB
- Stars: 0
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# laget.Caching
A generic implementation for caching that supports application-, request- and session-caching...![Nuget](https://img.shields.io/nuget/v/laget.Caching)
![Nuget](https://img.shields.io/nuget/dt/laget.Caching)## Configuration
> This implementation requires `Autofac` since this is the Inversion of Control container of our choosing.
### .NET Core
```c#
builder.RegisterCacheProviders();
```### .NET Framework
```c#
var builder = new ContainerBuilder();
builder.RegisterCacheProviders();
var container = builder.Build();
```## Usage
#### ApplicationCache (`IApplicationCache`)
> `Store`: Memory (MemoryCache)Stores application-specific data, e.g application configuration that only change between deployments/releases.
#### RequestCache (`IRequestCache`)
> `Store`: Dictionary (ConcurrentDictionary)Stores request-specific data, e.g. data used for a specific page that is fetched multiple times.