Caching in ASP.NET C# - Memory Caching is AMAZING

แชร์
ฝัง
  • เผยแพร่เมื่อ 2 ก.ค. 2024
  • 🔥 Want to 50x your application's performance? Then you NEED to learn about Memory Caching in ASP.NET and C#!
    🚀 C# Progress Academy - Become a job-ready C# and Angular web developer to land your dream developer role: bit.ly/45vbPUg
    📚 Or do you like to learn through BOOKS more? Our TINY C# PROJECTS BOOK!
    mng.bz/M5an
    We'll make sure to turn you into a true developer in no time!
    TIMESTAMPS
    00:00 Intro
    00:16 Our database and results of caching
    02:04 This one is for you!
    02:38 Let´s talk about caching
    06:56 What are our cache options?
    10:09 Testing our application with and without caching
    11:54 Thanks for watching!
    Caching in ASP.NET C# - Memory Caching is AMAZING
    So, what is C#?
    C# (pronounced "See Sharp") is a modern, object-oriented, and type-safe programming language. C# enables developers to build many types of secure and robust applications that run in .NET. C# has its roots in the C family of languages and will be immediately familiar to C, C++, Java, and JavaScript programmers. This tour provides an overview of the major components of the language in C# 8 and earlier. If you want to explore the language through interactive examples, try the introduction to C# tutorials.
    And ASP?
    ASP.NET is an open-source, server-side web-application framework designed for web development to produce dynamic web pages. It was developed by Microsoft to allow programmers to build dynamic web sites, applications and services. The name stands for Active Server Pages Network Enabled Technologies
    And what is Memory caching?
    Caching can significantly improve the performance and scalability of an app by reducing the work required to generate content. Caching works best with data that changes infrequently and is expensive to generate. Caching makes a copy of data that can be returned much faster than from the source. Apps should be written and tested to never depend on cached data.
    ASP.NET Core supports several different caches. The simplest cache is based on the IMemoryCache. IMemoryCache represents a cache stored in the memory of the web server. Apps running on a server farm (multiple servers) should ensure sessions are sticky when using the in-memory cache. Sticky sessions ensure that requests from a client all go to the same server. For example, Azure Web apps use Application Request Routing (ARR) to route all requests to the same server.
    Non-sticky sessions in a web farm require a distributed cache to avoid cache consistency problems. For some apps, a distributed cache can support higher scale-out than an in-memory cache. Using a distributed cache offloads the cache memory to an external process.
    The in-memory cache can store any object. The distributed cache interface is limited to byte[]. The in-memory and distributed cache store cache items as key-value pairs.
    To learn more, make sure to watch the video, and we promise you that you'll become a better developer by the end of the video! Have fun!
    #csharp #coding #tutorial #learn #microsoft #net #memory #caching #performance #aspnet
    TAGS
    Tutorials,Tutorial,Programming,Course,Step by step,development,programmer,learn how to,c#,.net,.net core,dotnet,core,asp,asp net,c sharp,csharp,memory caching asp,caching asp.net core,asp.net core web api caching,response cache asp.net core,cache in asp.net core,distributed caching,distributed cache,caching in asp.net,caching in asp.net mvc,cache in asp.net c#,visual studio,web api caching c#,dot net,how to code,caching,cache,in-memory distributed cache
    TutorialsEU offers you free video tutorials about programming and development for complete beginners up to experienced programmers.
    This includes C#, Unity, Python, Android, Kotlin, Machine Learning, etc.
    Stay tuned and subscribe to tutorialsEU: goo.gl/rBFh3x
    C#: / @tutorialseuc
    Facebook: / tutorialseu-1093802040...
    LinkedIn: / tutorialseu
    Discord: / discord

ความคิดเห็น • 20

  • @tutorialsEUC
    @tutorialsEUC  ปีที่แล้ว +5

    🚀 C# Progress Academy - Become a job-ready C# and Angular web developer to land your dream developer role: bit.ly/45vbPUg

    • @fpm.krivec8655
      @fpm.krivec8655 ปีที่แล้ว

      Hello, I would like to buy your ASP.NET course, but I have any question. Could I ask you?

  • @AliRaza-zy1zk
    @AliRaza-zy1zk 3 หลายเดือนก่อน +1

    Most of people don't go deep to talk some basics.
    You are true gem :)

  • @adnanmowakeh7993
    @adnanmowakeh7993 4 หลายเดือนก่อน

    one of the best teacher i have ever seen thx so much for the content

  • @Toughmenchannel
    @Toughmenchannel ปีที่แล้ว

    Awesome video!

  • @cleitoncarlospereira2006
    @cleitoncarlospereira2006 11 หลายเดือนก่อน +2

    I like your videos. They are very informative. Please do a video on creating a lock.

  • @jacksonmwangi1668
    @jacksonmwangi1668 ปีที่แล้ว +2

    I like your videos. they are very informative. Please do a video on creating a lock

  • @5asadrian5
    @5asadrian5 ปีที่แล้ว +2

    Hey great video! Could you do the video about thread safe?

  • @kawtheralmubarak9763
    @kawtheralmubarak9763 5 หลายเดือนก่อน

    How to implement in memory caching in the service in memory caching is when you store all the customers information in the memory of the application.and instead of searching in the database,we can have the service search in the in memory cache instead.

  • @LaviSaini-ot9rn
    @LaviSaini-ot9rn ปีที่แล้ว

    dear sir ,pls make a full video on calling ,call forwarding ,and merging through the C# code ,there is no tutorial on youtube with clear cut contect

  • @antomooken
    @antomooken 2 หลายเดือนก่อน

    very nice presentation. i have a requirement like to get all cached keys and based on that i need to remove some keys. is there is any option get all cached keys?

  • @VitaliyLysak
    @VitaliyLysak หลายเดือนก่อน

    It works great in Visual Studio only! When you use on IIS and app pool has more than 1 worker process (Web Garden) this doesn't work.

  • @jimmybellmon1268
    @jimmybellmon1268 8 หลายเดือนก่อน

    I was really able to follow you in this course can your razor pages course more than 3 Udemy courses I have. I just purchased your C# Progress Academy for $69. I like your teaching style 👍

  • @happie88
    @happie88 11 หลายเดือนก่อน

    why not after an update from the database is done then that's the time it will update the cache as well... instead of adding expiration.

  • @binojdaniel7
    @binojdaniel7 11 หลายเดือนก่อน

    Do you have any course using React or Vue since adoption for Angular is going down.

  • @Liootas
    @Liootas ปีที่แล้ว

    Ty. I wonder how that caching eats resources. Imagine tousands users at the same time and every second program saving into the chache and removing from it. How program handles it? Does it depends from computers capabilities? Ty

    • @tutorialsEUC
      @tutorialsEUC  ปีที่แล้ว +1

      The idea of caching is that the object gets chaced on the server and then shared with all users that request it :-)

  • @slypete
    @slypete 10 หลายเดือนก่อน

    You should create a view model and cache that instead of the db entity

  • @001KW9
    @001KW9 8 วันที่ผ่านมา

    You don't show it all, too bad