Explore tweets tagged as #IDistributedCache
@elliot1one
Elliot One
2 months
Hybrid Cache in .NET = blazing speed + strong consistency! Combines IMemoryCache + IDistributedCache 1. Built-in stampede protection 2. Cache-Aside via GetOrCreateAsync 3. Fast, scalable, cloud-ready Tried it yet? ๐Ÿ‘‡ #dotnet #caching #systemdesign #webdev
Tweet media one
Tweet media two
0
0
0
@marcgravell
Marc Gravell
1 year
first image is typical IDistributedCache usage; very manual; you could manually add IMemoryCache, making it more complex; second image is 2 ways ("simple" via capture, and "stateful" optimized version) of doing same with HybridCache, but this adds *so much more too*
Tweet media one
Tweet media two
1
0
9
@byte_hide
ByteHide
7 months
Code Example (IDistributedCache with Redis):
Tweet media one
1
0
0
@mjovanovictech
Milan Jovanoviฤ‡
1 year
๐—›๐˜†๐—ฏ๐—ฟ๐—ถ๐—ฑ๐—–๐—ฎ๐—ฐ๐—ต๐—ฒ ๐—ถ๐˜€ ๐—ฐ๐—ผ๐—บ๐—ถ๐—ป๐—ด ๐—ถ๐—ป .๐—ก๐—˜๐—ง ๐Ÿต This is a brand new caching API that's coming in .NET 9. HybridCache aims to solve the shortcomings of IMemoryCache and IDistributedCache. A few things that HybridCache offers: - Unified API for both in-process
Tweet media one
0
57
288
@TheCodeMan__
Stefan ฤokiฤ‡ | .NET
9 months
Here is why I will not use IMemoryCache and IDistributedCache anymore. From the .NET 9 things are different. โฌ‡๏ธ .NET 9 introduces ๐‡๐ฒ๐›๐ซ๐ข๐๐‚๐š๐œ๐ก๐ž, a caching mechanism that combines the speed of in-memory caching with the scalability of distributed caching. Itย is an
Tweet media one
Tweet media two
3
19
128
@jodydonetti
Jody Donetti
1 year
@marcgravell @jsneedles @neuecc Cloned the repo locally, made the class public and the services arg nullable + optional with sensible defaults, and... tada ๐Ÿ˜ฌ I present to you FASTER, with your IDistributedCache impl, working with FusionCache, inside the Simulator ๐ŸŽ‰ (the backplane is in memory for now)
Tweet media one
1
0
7
@mjovanovictech
Milan Jovanoviฤ‡
1 year
๐—ง๐—ต๐—ฒ ๐—ผ๐—ป๐—ฒ ๐—ฐ๐—ฎ๐—ฐ๐—ต๐—ถ๐—ป๐—ด ๐—ฝ๐—ฎ๐˜๐˜๐—ฒ๐—ฟ๐—ป ๐˜†๐—ผ๐˜‚ ๐—ป๐—ฒ๐—ฒ๐—ฑ ๐˜๐—ผ ๐—ธ๐—ป๐—ผ๐˜„. It's called the Cache-aside pattern. Fun fact: another name for this pattern is Lazy Loading. In my latest video, we'll discuss: - IMemoryCache, IDistributedCache - Briefly talk about .NET 9
Tweet media one
1
39
187
@jodydonetti
Jody Donetti
2 years
๐Ÿ”€ FusionCache: 2nd Level To help with cold starts or horizontal scalability, FusionCache can automatically handle a distributed 2nd level: any impl of IDistributedCache will work. Also, the existing code does not need to change, it all just works. https://t.co/iOPOIRfhLf
Tweet media one
Tweet media two
0
0
4
@mjovanovictech
Milan Jovanoviฤ‡
4 months
๐—›๐˜†๐—ฏ๐—ฟ๐—ถ๐—ฑ๐—–๐—ฎ๐—ฐ๐—ต๐—ฒ ๐—ถ๐—ป .๐—ก๐—˜๐—ง ๐Ÿต .NET 9 introduces a new caching API: HybridCache. It solves the limits of IMemoryCache and IDistributedCache. What does it offer? - Unified API (in-process + out-of-process) - Configurable serialization - Stampede protection - Tag-based
Tweet media one
5
23
148
@heystanislav
Stanislav
3 years
Want to improve the performance of your #aspnet web app? One of the easiest techniques is to use caching. If there's something that is not updated regularly and fetched often - we got our candidate for caching. With IDistributedCache in aspnet it's a piece of cake. #dotnet
Tweet media one
1
0
15
@heystanislav
Stanislav
3 years
Cache-Aside is perhaps the most straightforward caching pattern, which can be explained as: - Look if there's a cache record and get it. If not, get it from DB and put it in the cache. Plain simple. I've got a couple of handy extension methods on IDistributedCache in #dotnet ๐Ÿ‘‡
Tweet media one
Tweet media two
2
5
21
@jodydonetti
Jody Donetti
1 year
@davidfowl Also, it may be usable soon as an IDistributedCache impl ๐Ÿคž https://t.co/NUPrwoZOHu
1
1
19
@t_higuma
ใฒใ้ญ”๐Ÿท
20 days
@JP_sansan ใใฎใƒฉใ‚คใƒ–ใƒฉใƒชใฏๅญ˜ใ˜ใชใ„ใงใ™๐Ÿท ๆจ™ๆบ–ใƒฉใ‚คใƒ–ใƒฉใƒชใฎ IDistributedCache ใ‚’ไฝฟใ†ใฎใŒไธ€่ˆฌ็š„ใ‹ใจ๐Ÿทๅˆ†ๆ•ฃใ‚ญใƒฃใƒƒใ‚ทใƒฅใฃใฆใƒฏใƒผใƒ‰ใงๆคœ็ดขใ™ใ‚‹ใจmsใƒ‰ใ‚ญใƒฅใƒกใƒณใƒˆใง่จ˜่ผ‰ใ•ใ‚Œใฆใ„ใ‚‹ใ‹ใจ๐Ÿท
1
0
1
@jodydonetti
Jody Donetti
1 year
... since it's protocol compatible with Redis, just use its standard impl of IDistributedCache (Microsoft.Extensions.Caching.StackExchangeRedis) as a 2nd level with FusionCache and you're good to go. Like, immediately today ๐Ÿฅณ https://t.co/iOPOIRfhLf
2
0
8
@lucasmeijer
Lucas Meijer
1 month
hmm, there's no Sqlite implementation of IDistributedCache?
0
0
0
@kzu
Daniel Cazzulino ๐Ÿ‡ฆ๐Ÿ‡ท๐Ÿ—ฝ
10 months
Curious how to integrate the newer HybridCache that @danroth27 showcased yesterday with the new https://t.co/XRivLbcxWP API that already integrates with IDistributedCache ๐Ÿค” @stevensanderson. It's likely quite trivial...
Tweet media one
0
0
1
@paul_seabury_tx
Paul Seabury
1 year
@mjovanovictech Looks like as part of the major NET9 theme, Microsoft is augmenting the IDistributedCache interface and will be using it to support a richer RateLimiting feature set. https://t.co/v7sFXXD1mZ
1
0
1
@Intitech07
INTITECH๐Ÿ‘จโ€๐Ÿ’ป๐Ÿ’ฏ ๐•ฉ
10 months
@dotnet based on this article from #microsft it is said that "HybridCache is almost 1000x faster than using IDistributedCache in high cache hit rate scenarios thanks to its multi-tiered cache storage" check it out yourself ๐Ÿ’ฏ https://t.co/5OUaMl3cuX
0
0
0
@davidpine7
David Pine (@[email protected]) ๐Ÿ‡บ๐Ÿ‡ฆ
2 years
๐Ÿค“ Hey C# friends, thoughts on adding GetOrCreate and GetOrCreateAsync APIs to the IDistributedCache? I believe it could even be done as a default interface implementation, see here and comment: https://t.co/9wR2ptt3gx
6
5
32
@marcgravell
Marc Gravell
1 year
๐Ÿคthis close to getting the first cut of HybridCache merged for next preview; combines: - radically simple API - IDistributedCache (L2) - IMemoryCache (L1) - stampede prevention - fully configurable serialization coming soon: - tagging - L2-assisted eviction - compression +more
15
12
170