Skip to content

Persistent cache on top of Microsoft.Extensions.Caching.Memory and LiteDb

License

Notifications You must be signed in to change notification settings

joelweiss/PersistentMemoryCache

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build status NuGet Badge

Persistent Memory Cache

Caches in Memory but also to Disk, so cache is persistent across restarts, build on Top of Microsoft.Extensions.Caching.Abstractions and LiteDb

Installation

PM> Install-Package PersistentMemoryCache -Pre

Example

IMemoryCache cache = new PersistentMemoryCache(new PersistentMemoryCacheOptions("Test", new LiteDbStore(new LiteDbOptions("Test.db"))));

string key = "TestKey";
string value = "TestValue";
cache.Set(key, value);

var retrieve = cache.Get(key);

About

Persistent cache on top of Microsoft.Extensions.Caching.Memory and LiteDb

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages