Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/milovidov983/concurrentcache

Easy to use library for local cache
https://github.com/milovidov983/concurrentcache

cache localcache threadsafe

Last synced: 2 days ago
JSON representation

Easy to use library for local cache

Awesome Lists containing this project

README

        

# ConcurrentCache - An easy-to-use, thread-safe local cache library for dotnet
__Package__ - [ConcurrentLocalCache](https://www.nuget.org/packages/ConcurrentLocalCache/)

## Overview

An easy-to-use, thread-safe local cache library for dotnet. It is based on the implementation recommended by Microsoft `Microsoft.Extensions.Caching.Memory`.

---

## Super simple to use

```csharp

// Create instance
ICache localCache = new Cache();

var key = "42number";

// Get or add value from cache by key "42number"
var result = await cache.GetOrAdd(key, () => Task.FromResult(42));

```