Skip to content

milovidov983/ConcurrentCache

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ConcurrentCache - An easy-to-use, thread-safe local cache library for dotnet

Package - 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

// Create instance
ICache<string, int> localCache = new Cache<string, int>();

var key = "42number";

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

About

Easy to use library for local cache

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages