shiny
Lazy Cache
Our great sponsors
shiny | Lazy Cache | |
---|---|---|
1 | 9 | |
1,387 | 1,690 | |
2.7% | - | |
9.4 | 0.0 | |
5 days ago | 3 months ago | |
C# | C# | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
shiny
-
Best practice for getting location
I am doing almost everything lately in MAUI. That being said, the last Xamarin project I did had some location monitoring requirements. I used this library : https://github.com/shinyorg/shiny It is a bit more work to plumb up (compared to using Xamarin Essentials, but once you do, it does a really good job.
Lazy Cache
-
Caching in .NET
Leverage Frameworks and Libraries: Numerous libraries and frameworks are available for .NET that can simplify caching implementation and management. Examples include CacheManager, EasyCaching, and LazyCache. Evaluate these options to see if they meet your requirements and can help streamline your caching strategy.
- What your hidden nuget gems ?
- Request for code review for IMemoryCache Generic Helper method
-
How to implement cache
We're using a wrapper library called LazyCache. It works fine.
-
Parallel.ForEachAsync Deep Dive
I wasn't aware of this LazyCache nuget, it would requires a bit of a code rewrite for me to use directly, but it seems nice. The only issue is that I see their AsyncLazy implementation does not do what the stackoverflow post mention.
- Capper - Strongly typed read-through caching extensions for .NET's IDistributedCache
- Libraries for Memory Caching which wrap objects like Moq
What are some alternatives?
Akavache - An asynchronous, persistent key-value store created for writing desktop and mobile applications, based on SQLite3. Akavache is great for both storing important data as well as cached local data that expires.
CacheManager - CacheManager is an open source caching abstraction layer for .NET written in C#. It supports various cache providers and implements many advanced features.
Electron.NET - :electron: Build cross platform desktop apps with ASP.NET Core (Razor Pages, MVC, Blazor).
EasyCaching - :boom: EasyCaching is an open source caching library that contains basic usages and some advanced usages of caching which can help us to handle caching more easier!
SharpRepository - C# Generic Repository for use with Entity Framework, RavenDB and more with built-in caching options.
SqliteCache for ASP.NET Core - An ASP.NET Core IDistributedCache provider backed by SQLite
NCache - NCache: Highly Scalable In-Memory Distributed Cache for .NET
FusionCache - FusionCache is an easy to use, fast and robust cache with advanced resiliency features and an optional distributed 2nd level.
Foundatio - Pluggable foundation blocks for building distributed apps.