Skip to content

An in-memory key/value cache that: 1. load data on first access (thread block) 2. automatically refresh data when cache entry expires (in async thread)

Notifications You must be signed in to change notification settings

jiangyi1985/AutoRefreshCache.net

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

AutoRefreshCache.net

Sample:

return AutoRefreshCache.Instance.GetOrRegisterNew<string>("testkey", key =>
             {
                 Thread.Sleep(5000);//some heavy work
                 return "test value created at " + DateTime.UtcNow + " for key: " + key;
             }, TimeSpan.FromSeconds(10));

About

An in-memory key/value cache that: 1. load data on first access (thread block) 2. automatically refresh data when cache entry expires (in async thread)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages