OneOf
Lazy Cache
OneOf | Lazy Cache | |
---|---|---|
25 | 9 | |
3,225 | 1,694 | |
- | - | |
2.9 | 0.0 | |
3 months 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.
OneOf
-
The Monad Invasion - Part 1: What's a Monad?
OneOf
-
Discriminated Unions: Essa feature faz falta no CSharp
Inclusive, para suportar esse tipo de funcionalidade, foi criada a biblioteca OneOf: mcintyre321/OneOf: Easy to use F#-like ~discriminated~ unions for C# with exhaustive compile time matching (github.com)
- Easy to use F#-like ~discriminated~ unions for C# with big compile time matching
-
Rolled my own Result<T,E> type that seems to work better than others.
Then I found discussion of the OneOf package, and then found some simpler Result code. I tried using that code but I found the use of Match and lambdas meant I couldn't simply break out of the loop in my example.
-
What's new in C# 12: overview
Until that feature lands there's this https://github.com/mcintyre321/OneOf which is pretty nice.
- The combined power of F# and C#
-
Exception handling between controller and service
Yep, it's called result pattern, aforementioned above. There was two highlighted implementations - OneOf, FluentResults.
-
Have you heard of AnyOf .NET Lib?
No he didn't. He made a video of the OneOf library. Not this one.
-
Have you heard of AnyOf C# Library?
We already have OneOf https://github.com/mcintyre321/OneOf I've used it in Production multiple times and it's an awesome way to keep everything strongly typed and eliminate null reference exceptions.
- What your hidden nuget gems ?
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?
language-ext - C# functional language extensions - a base class library for functional programming
CacheManager - CacheManager is an open source caching abstraction layer for .NET written in C#. It supports various cache providers and implements many advanced features.
csharp-monad - Library of monads for C#
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!
ValueOf - Deal with Primitive Obsession - define ValueObjects in a single line (of C#).
SqliteCache for ASP.NET Core - An ASP.NET Core IDistributedCache provider backed by SQLite
csharplang - The official repo for the design of the C# programming language
FusionCache - FusionCache is an easy to use, fast and robust cache with advanced resiliency features and an optional distributed 2nd level.
Rop.OneOfExtensionGenerator - OneOf Helper Extensions Source Generator
NCache - NCache: Highly Scalable In-Memory Distributed Cache for .NET
BinderTool - Dark Souls II / Dark Souls III / Bloodborne bdt, bhd, bnd, dcx, tpf, fmg and param unpacking tool
Electron.NET - :electron: Build cross platform desktop apps with ASP.NET Core (Razor Pages, MVC, Blazor).