Intro to Redis in C# - Caching Made Easy

  Переглядів 170,224

IAmTimCorey

IAmTimCorey

День тому

Caching can make your website run faster, it can improve your desktop application, and it can reduce the stress on your database. Basically, if you figure out caching, you can dramatically improve how well your application scales. In this video, we are going to look at how to use Redis to quickly and easily cache our data. I think you will be shocked by how easy this turns out to be.
Source Code: leadmagnets.app/?Resource=Int...
Mailing List: signup.iamtimcorey.com/
Purchase courses: iamtimcorey.com
0:00 - Intro
1:07 - Creating Blazor Server demo app
2:41 - Simulating wait on data access: AsyncTask Delay
9:05 - Redis Sever using Docker
16:01 - Caching NuGet
17:41 - Application configuration for Redis
21:11 - Redis connection string
23:00 - Extensions: helper methods for caching
40:58 - Implementing caching with Redis
57:38 - Loading data vs cache in action
1:01:16 - Recap
1:02:20 - Azure Redis server
1:13:25 - Stop and remove Redis server on Docker
1:15:40 - Remove Redis on Azure
1:18:37 - Summary and concluding remarks
Thanks to Ralfs HBK for the chapter breakdown

КОМЕНТАРІ: 447
@magnus7538
@magnus7538 3 роки тому
30 minutes ago I searched for "Tim Corey Redis" to see if you had a tutorial on it. Then I get a notification.. Fantastic!
@IAmTimCorey
@IAmTimCorey 3 роки тому
Staying in tune with my viewers and the industry, ... but that is a bit freaky. :)
@rubeushagrid4131
@rubeushagrid4131 2 роки тому
Its not that freaky if its really your business to understand it.
@ignask2216
@ignask2216 3 роки тому
Taking a look at recent video releases, it looks like Tim started reading my mind. Awesome content.
@IAmTimCorey
@IAmTimCorey 3 роки тому
I try to stay in tune with my viewers
@daltonj507
@daltonj507 3 роки тому
Thanks so much! I was just about to find a good video on redis so I was very happy when I saw you post a video, great video. Very clear and detailed.
@IAmTimCorey
@IAmTimCorey 3 роки тому
Glad you liked it!
@kalleguld
@kalleguld 3 роки тому
Looking forward to the RabbitMQ intro :)
@IAmTimCorey
@IAmTimCorey 3 роки тому
Added to the suggestion list.
@appleton6509
@appleton6509 3 роки тому
All of your videos are really well done. Very thorough explanations. Thanks for sharing your knowledge!
@IAmTimCorey
@IAmTimCorey 3 роки тому
Glad you like them!
@jairusshole8622
@jairusshole8622 3 роки тому
Thanks for this great video Tim, as always; great work.
@IAmTimCorey
@IAmTimCorey 3 роки тому
My pleasure!
@tayebhimel4493
@tayebhimel4493 3 роки тому
I don't know why every time you posted a new video it makes me happy. :)
@IAmTimCorey
@IAmTimCorey 3 роки тому
I am glad.
@RobReynolds
@RobReynolds 3 роки тому
yet again, super useful content Tim. thanks for the video
@IAmTimCorey
@IAmTimCorey 3 роки тому
My pleasure!
@readingcurious3117
@readingcurious3117 2 роки тому
I really liked your explanation. It is very clear, practical and no up in the air talks. Redis explained spot on :)
@IAmTimCorey
@IAmTimCorey 2 роки тому
Glad you enjoyed it!
@mohammedfaizsanusi4876
@mohammedfaizsanusi4876 2 роки тому
Absolute Best UKposts Tutor. I really enjoy your videos more than the ones I pay for. Kudos man.
@IAmTimCorey
@IAmTimCorey 2 роки тому
Thank you.
@mthokozisimtolo8910
@mthokozisimtolo8910 3 роки тому
As always, absolutely great content!
@IAmTimCorey
@IAmTimCorey 3 роки тому
Much appreciated!
@dhruvpanchal9010
@dhruvpanchal9010 3 роки тому
Now a days, I daily need to come to your channel for a new topic. And everytime, i gather something very useful knowledge.
@tomthelestaff-iamtimcorey7597
@tomthelestaff-iamtimcorey7597 3 роки тому
Thanks for sharing that. Its appreciated.
@zuhaibahmed2241
@zuhaibahmed2241 3 роки тому
Hey Tim, you’re an awesome teacher. I’ve been a huge fan of your videos because they are simple, focused on real world scenarios and inculcate best practices along the way. I would really like you to create a video tutorial on Kubernetes and docker. Really appreciate your services to the community, not a lot of people share best practices easily.
@IAmTimCorey
@IAmTimCorey 3 роки тому
I showed off a lot on how to use Docker in this video: ukposts.info/have/v-deo/kZpnbZmOfH2QuqM.html I also have a Getting Started with Docker course: www.iamtimcorey.com/p/getting-started-with-docker I will be doing more with Docker and K8s in the near future.
@DevMadeEasy
@DevMadeEasy 3 роки тому
Another masterpiece, grateful to share with us!
@IAmTimCorey
@IAmTimCorey 3 роки тому
My pleasure!
@0i0l0o
@0i0l0o Рік тому
Sweet stuff. Thank you Corey.
@IAmTimCorey
@IAmTimCorey Рік тому
You are welcome.
@timnguyen8190
@timnguyen8190 2 роки тому
Thank you Tim, your explaination is very clear.
@IAmTimCorey
@IAmTimCorey 2 роки тому
You are welcome.
@seanki
@seanki 3 роки тому
Sweet, was talking to my colleagues about caching in .Net today at work and they told me to look into Redis. Impeccable timing Tim!
@IAmTimCorey
@IAmTimCorey 3 роки тому
Glad I could help!
@alvinbernardo9551
@alvinbernardo9551 2 роки тому
always great tutorial from Tim Corey
@IAmTimCorey
@IAmTimCorey 2 роки тому
Thanks!
@jeppechristensen5707
@jeppechristensen5707 3 роки тому
What an effort you put into this. Thanks alot!
@IAmTimCorey
@IAmTimCorey 3 роки тому
You are welcome.
@themusic1609
@themusic1609 Рік тому
Great explained, Thanks Tim
@IAmTimCorey
@IAmTimCorey Рік тому
You are welcome.
@mateoortiz9286
@mateoortiz9286 Рік тому
Once again Great job! Very well done!
@IAmTimCorey
@IAmTimCorey Рік тому
Thank you!
@klob1100
@klob1100 3 роки тому
I really love your content man! thank you very much for sharing your knowledge!
@tomthelestaff-iamtimcorey7597
@tomthelestaff-iamtimcorey7597 3 роки тому
Thank you for continuing your learning with Tim.
@jimmcnulty1449
@jimmcnulty1449 3 роки тому
Thanks for the Outstanding video Tim. You are a good man.
@IAmTimCorey
@IAmTimCorey 3 роки тому
Very welcome
@GaryWee111
@GaryWee111 2 роки тому
Thank you for your time making this! It is extremely useful to me!
@IAmTimCorey
@IAmTimCorey 2 роки тому
You're very welcome!
@fsfehico
@fsfehico 3 роки тому
You really make building .NET projects easy. Thanks Tim.
@IAmTimCorey
@IAmTimCorey 3 роки тому
You are welcome.
@enyeluchukwuebukaj.7600
@enyeluchukwuebukaj.7600 Рік тому
Hello Tim, thank you for this nice video. It was really clear to understand on one go!
@IAmTimCorey
@IAmTimCorey Рік тому
You are welcome!
@jesusdelarua5995
@jesusdelarua5995 2 роки тому
Tim, this is the most instructive video I have found regarding using Redis for caching. I have looked at several, but they do not explain the level of details you have explained in this video. You have explained in a such way, that any beginner like me will understand and will be able to implement. Thank you, Thank you very much for doing this for us. I really appreciate it.
@IAmTimCorey
@IAmTimCorey 2 роки тому
I am glad it was so helpful.
@timw1971
@timw1971 3 роки тому
Great vid. Very clear. Thanks for uploading.
@tomthelestaff-iamtimcorey7597
@tomthelestaff-iamtimcorey7597 3 роки тому
Thank you for continuing your learning with Tim.
@user-ey2ei4oz3m
@user-ey2ei4oz3m 3 роки тому
Tim keep up the awesome content!
@IAmTimCorey
@IAmTimCorey 3 роки тому
Thanks.
@cryptodaddy79
@cryptodaddy79 3 роки тому
Thanks so much for your awesome content. You explain it so well, I am really impressed.
@IAmTimCorey
@IAmTimCorey 3 роки тому
You're very welcome!
@piotr6215
@piotr6215 2 роки тому
Very informative video. Really good practical example with Amazon at the end.
@tomthelestaff-iamtimcorey7597
@tomthelestaff-iamtimcorey7597 2 роки тому
Thanks for the support. Did you mean Azure, not Amazon?
@Otonium
@Otonium 3 роки тому
PA I just love your series Tim, the tempo, the topics you cover, the quality of the samples.... and your invaluable real world insights. But I sometimes miss the UKposts feature which divides your video in segments. If you add those timestamps, so medium, or even advanced developers (viewers with some experience with the reasons or scenarios) can skip a bit, It would be great. While preserving the ultra useful basics for the newcomers at the same time. That kind of organization in your course wound be even better. Certainly a win-win scenario. Thank you!
@IAmTimCorey
@IAmTimCorey 3 роки тому
When you do see those on my videos, you can look at the video notes and see that they were usually provided by viewers like you. They are great but I just don't have the time to do it. If you are the type person that keeps notes and wants to place the timestamps/chapters in the comments, I will gladly add them to the videos.
@pujithreddy308
@pujithreddy308 3 роки тому
Really thankful for this awesome content
@IAmTimCorey
@IAmTimCorey 3 роки тому
Glad you enjoy it!
@zoltan.halasz
@zoltan.halasz 3 роки тому
I heard about Redis but have not tried it before. I know it can make web apps quicker. Now after this tutorial it's much clearer to me!
@IAmTimCorey
@IAmTimCorey 3 роки тому
Glad it helped
@shahzshafie
@shahzshafie 3 роки тому
wozers! very easy to understand video on Redis. Before this i imagine to setup Redis is kinda complicated and to learning it takes time.. i was wrong! and very easy to use it in .NET Core project! thanks Tim!
@IAmTimCorey
@IAmTimCorey 3 роки тому
Glad it was helpful!
@dskunu
@dskunu 3 роки тому
Thanks a lot Tim!
@tomthelestaff-iamtimcorey7597
@tomthelestaff-iamtimcorey7597 3 роки тому
Thanks for watching.
@TheOceanLoader
@TheOceanLoader 3 роки тому
I've just discovered you, Mr Tim Corey! Having been thoroughly informed on Redis with this great tutorial, it's a given in my brain. You are an absolute legend for all of your hard work so that all of us pick it up.. So much. So useful. So free! What's the catch Tim? How come they are trying to charge me hundreds of dollars for the same sort of video on sites like Udemy and Pluralsight - so why is this different with you? You must be a saint. The stuff you have taught me will increase the chances of me getting specific roles. There was no sign-up process that stole my data in order to heavily market me offers on Redis subscriptions, etc. Purest form of altruism, Tim! Massive thank you dear Sir! May your future be safe and secure. May He bless you for your kindness. Thank you. Thank you.
@IAmTimCorey
@IAmTimCorey 3 роки тому
Why thank you, but know that my family does have to eat. I have a paid site and a Patreon option for those that want to help fund the free content. You said you just discovered my materials, have you seen the Path video where I explain much of this? - ukposts.info/have/v-deo/hIWnZmaIr46bx6s.html
@TheOceanLoader
@TheOceanLoader 3 роки тому
@@IAmTimCorey I have now - with many thanks! Once I have been paid for my current invoice, I will kick back where I can. I'm a senior developer - with VBA back 15 years ago - through classic ASP, Win Forms, VB.NET, MVC.NET, DotNet Core, etc
@049593657
@049593657 7 місяців тому
You are an excellent guide, a professional and understandable explanation, well done
@IAmTimCorey
@IAmTimCorey 7 місяців тому
Thank you!
@user-te4io9hm4f
@user-te4io9hm4f 2 роки тому
it's a really great tutorial. Thanks!
@IAmTimCorey
@IAmTimCorey 2 роки тому
You're welcome!
@ardavaztterterian1211
@ardavaztterterian1211 3 роки тому
I was just implementing Redis in my project and was struggling with an error I couldn't resolve. And boom, Tim Corey uploads a video on Redis. What are the chances!! Thank you
@IAmTimCorey
@IAmTimCorey 3 роки тому
Great to hear!
@BloodHaZaRd666
@BloodHaZaRd666 9 місяців тому
Love it, very clear Thx Tim
@IAmTimCorey
@IAmTimCorey 9 місяців тому
You are welcome.
@robbiexiong3508
@robbiexiong3508 3 роки тому
Ty. This tut came out at the right time and helped a lot
@IAmTimCorey
@IAmTimCorey 3 роки тому
Glad to hear it.
@razor23Ukraine
@razor23Ukraine 3 роки тому
Thanks, Tim! Now we are really waiting for RabbitMQ! And waiting from you exactly because you can make it in the best way :) P.S. oh, just noticed a video about Azure service bus, it might be somewhat related, so I'm gonna watch it now!
@IAmTimCorey
@IAmTimCorey 3 роки тому
I appreciate the suggestion and added it to my list.
@wubblyjuggly
@wubblyjuggly 2 роки тому
Excellent stuff
@IAmTimCorey
@IAmTimCorey 2 роки тому
Thank you!
@amitj8010
@amitj8010 2 роки тому
Amazing content. Thanks a lot for the Video. It's really Caching Made Easy :)
@IAmTimCorey
@IAmTimCorey 2 роки тому
Thank you!
@luigiglorioso548
@luigiglorioso548 3 роки тому
you're the best one. thank you.
@IAmTimCorey
@IAmTimCorey 3 роки тому
You're welcome!
@miladabdi3191
@miladabdi3191 Рік тому
Thanks for your awesome and usefull videos. Thanks a lot. 🙏🙏🙏
@IAmTimCorey
@IAmTimCorey Рік тому
You are welcome.
@morhebbek
@morhebbek 3 роки тому
hello master Tim, and thank you for all your great work I just got a job as a developer, a trainee currently, and your videos were very helpful to show my mentors that i am learning unfortunately, I am from Lebanon and I can pay anything online, but maybe when i start getting salary i will, and if i do i will register to your courses
@IAmTimCorey
@IAmTimCorey 3 роки тому
The reason I do this work is so you can have a better life, not to force you to pay me money. I am thrilled to hear about your job. Check out my Dev Questions playlist/podcasts and my Blog to help you when you find workplace challenges. Both at IAmTimCorey.com. Good luck in your new position! I am very proud of you.
@JaskiratSingh-pn9sv
@JaskiratSingh-pn9sv Рік тому
You're the real savior my friend, God bless the kind people.
@IAmTimCorey
@IAmTimCorey Рік тому
I am glad it was so helpful.
@shaktisingh-lu3dm
@shaktisingh-lu3dm 3 роки тому
Many Thanks for the wonderful help you are doing to seekers like me. :)
@IAmTimCorey
@IAmTimCorey 3 роки тому
You are welcome.
@JordanPedro
@JordanPedro Рік тому
Amazing video . Thanks
@IAmTimCorey
@IAmTimCorey Рік тому
You are welcome.
@RalfsBalodis
@RalfsBalodis 3 роки тому
0:00 - Intro 1:07 - Creating Blazor Server demo app 2:41 - Simulating wait on data access: AsyncTask Delay 9:05 - Redis Sever using Docker 16:01 - Caching NuGet 17:41 - Application configuration for Redis 21:11 - Redis connection string 23:00 - Extensions: helper methods for caching 40:58 - Implementing caching with Redis 57:38 - Loading data vs cache in action 1:01:16 - Recap 1:02:20 - Azure Redis server 1:13:25 - Stop and remove Redis server on Docker 1:15:40 - Remove Redis on Azure 1:18:37 - Summary and concluding remarks
@IAmTimCorey
@IAmTimCorey 3 роки тому
Thanks. This is really helping other folks in the community, based on the many comments I get.
@saeedsedigh443
@saeedsedigh443 2 роки тому
this guy waste a lot of time for real.
@carstenberggreen7509
@carstenberggreen7509 2 роки тому
@@saeedsedigh443 waste??? what do you mean? he is teaching a LOT of developers on how to do stuff that some people find hard to figure out?
@robertgreen5333
@robertgreen5333 Рік тому
@@saeedsedigh443 You are WRONG! Thanks soooo much for Tim!!!
@reikooters
@reikooters Рік тому
@@carstenberggreen7509 I appreciate the effort it takes to create videos and share knowledge, but I do agree he wastes too much time. He has this video on an "Advanced C#" playlist, but then spends 3 minutes creating a new project and keeps stopping throughout the video to spend a long time explaining basics of the language. For example, at 23:00 he spent 17 minutes to write 2 functions which are only a few lines of code each while talking about what an extension method is and what null is. Maybe I'm just the wrong target audience and it's more aimed at absolute beginners, but I do think if someone is at the point that they want to learn how to improve the performance of their app with caching, they're already very familiar with the language features he is using here.
@mohamedfawzy6632
@mohamedfawzy6632 3 роки тому
thank you Tim. i just yet implement it in my site
@IAmTimCorey
@IAmTimCorey 3 роки тому
You are welcome.
@angelvids6024
@angelvids6024 3 роки тому
Hi Tim, love the new video. I signed up to your C# courses and am really getting a lot out of them, so thanks for all you do. Suggestions for videos/courses. Something I'd really like to see is building upon some of the courses you've already done relating to databases. That is, accessing databases securely, I can see you have tutorials on accessing databases, but in a fairly recent video regarding database security you recommend users don't send credentials from their application to the remote DB for security reasons, you talked about using stored functions and creating our own API's to interact securely with remote DB, so perhaps a guiding showing us how to do this. For example a user sign in system from a WPF app to remote DB or getting product info from DB properly and securely. That would be really great to see, perhaps with Azure as well?
@IAmTimCorey
@IAmTimCorey 3 роки тому
Noted... Its on the list.
@angelvids6024
@angelvids6024 3 роки тому
@@IAmTimCorey Lol yeah it was a bit longer than intended 😂 Edited it down, note to self, stop writing messages on multi sessions and forgetting what you wrote.
@S3Kglitches
@S3Kglitches 3 роки тому
Thank you that was very helpful and informative! Thank you for inspiring Are there any other native properties for the cached items than timeout of the items and timeout if unused? I have implemented an in-memory Least Recently Used cache for example but that's inside my application so I am wondering if Redis directly supports this or maybe we can override the default Redis behavior somehow? Or extend it?
@iamnoob7593
@iamnoob7593 Рік тому
just amazing
@IAmTimCorey
@IAmTimCorey Рік тому
Thanks!
@piranha1337
@piranha1337 3 роки тому
Yay a new practical video 🥰 Topic suggestion: Allocation free c#. What's span about? A lot of people getting in touch with C# through Unity so shaving of another 2ms from your render loop can actually matter! :)
@IAmTimCorey
@IAmTimCorey 3 роки тому
Added to the list for consideration.
@user-xc3xk4xk1z
@user-xc3xk4xk1z 3 роки тому
Thanks very much for help!
@IAmTimCorey
@IAmTimCorey 3 роки тому
You are welcome.
@yasser2768
@yasser2768 3 роки тому
Tim you're great!
@IAmTimCorey
@IAmTimCorey 3 роки тому
Thanks
@michaelfarias4901
@michaelfarias4901 Рік тому
Great channel!
@IAmTimCorey
@IAmTimCorey Рік тому
Thank you!
@tilenmokic
@tilenmokic 3 роки тому
Thanks for another great video. I was just wondering, why do you put time variable in recordKey and set an expiration on the same record? Would it not be enough just to set the expiration and have the same recordKey every time?
@girornsveinsson7970
@girornsveinsson7970 3 роки тому
This is great! - I asked for this a few weeks ago and here it is :-) One question though. What is the best way to force a read from the original source if you know that the cashed data is no longer valid?
@robertgelb9385
@robertgelb9385 3 роки тому
Tim, one thing that might be useful (and I've done in the past) is a method for downgrading from Redis to local caching if it becomes unavailable (like when you unplugged the docker container). And then automatically switching to Redis when it does come back online.
@IAmTimCorey
@IAmTimCorey 3 роки тому
Thanks for sharing!
@joebegly733
@joebegly733 2 роки тому
Great video! One tip on keeping it cleaner with your if/else with strings being null or empty (and the small bugs that can happen if you check for the wrong state) is to use the built in string method string.IsNullOrEmpty(stringVar)
@tomthelestaff-iamtimcorey7597
@tomthelestaff-iamtimcorey7597 2 роки тому
Thanks for posting the tip
@precioustagbovi6139
@precioustagbovi6139 4 місяці тому
Q
@nabeelkhan2632
@nabeelkhan2632 3 роки тому
Excellent video @IAmTimCorey. Unlike your other videos, in the beginning of this video you did not tell us why use Redis and not IMemoryCache provided by Microsoft. Or in what situations to prefer one over the other!
@tomthelestaff-iamtimcorey7597
@tomthelestaff-iamtimcorey7597 3 роки тому
Thanks for the observation.
@moneyfresher3035
@moneyfresher3035 2 роки тому
Hi Tim, Another awesome video from you. I have a question for you. Like cookie authentication, do we have session based authentication in core? Redis could be more beneficial if we store the data for authentication purpose. I have seen various example of storing the data in session and retrieving back but nowhere found for authentication and authorisation purpose. Does session based authentication exists or it just used to store the data for state management?
@dochuong6088
@dochuong6088 3 роки тому
Thank you so much
@tomthelestaff-iamtimcorey7597
@tomthelestaff-iamtimcorey7597 3 роки тому
Tim appreciates you watching his videos and trusting him for your learning.
@gdasoft7558
@gdasoft7558 2 роки тому
thanks a lot so useful
@IAmTimCorey
@IAmTimCorey 2 роки тому
You are welcome.
@emreaka3965
@emreaka3965 5 місяців тому
Thank you 🥰🥰
@IAmTimCorey
@IAmTimCorey 5 місяців тому
You are welcome.
@myemailvl
@myemailvl 3 роки тому
I think the better option for giving required absoluteRequireTime is to set this as default value, but a specific value instead of null. Because this value will be shown for everyone who calls this method. And will be clear that expiration will happen after that time. And user of this method will not need to analyze the method itself for been able to understand this behavior. Just a note. Don`t want to sound like i didn`t like this lesson. It`s very informative! Thank you very much, Tim!
@IAmTimCorey
@IAmTimCorey 3 роки тому
Thanks for the suggestion.
@eyalankri
@eyalankri 7 місяців тому
Thank you.
@IAmTimCorey
@IAmTimCorey 7 місяців тому
You are welcome.
@EgyptUnderGroundArmy
@EgyptUnderGroundArmy 3 роки тому
Awesome video as usual, Tim! is there any chance you will be covering the changes that C# 9 brings in a video sometime in the future?
@IAmTimCorey
@IAmTimCorey 3 роки тому
Multiple folks have requested, so its on the list.
@KouroushMetal
@KouroushMetal 3 роки тому
I usually use memurai on windows and EasyCaching on all asp.net core apps and the amount of load it push back from server is huge. thanx for video.
@IAmTimCorey
@IAmTimCorey 3 роки тому
Glad you found something that works for you.
@sarveshsawant7232
@sarveshsawant7232 2 роки тому
Perfect
@IAmTimCorey
@IAmTimCorey 2 роки тому
Thanks!
@naftoliost4534
@naftoliost4534 3 роки тому
Hi Tim Thanks as always for the great videos I'm in the middle of a .NET project, trying to get my head around sending emails from within the app. Is the infrastructure built in within the framework or does it need to be built manually? Would love to see a video on how to go about setting up email sending infrastructure. Thanks in advance
@IAmTimCorey
@IAmTimCorey 3 роки тому
Added to the list, thanks for the suggestion.
@AhmedMohammed23
@AhmedMohammed23 3 роки тому
firefox - microsoft terminal - powershell core this video is on fire
@IAmTimCorey
@IAmTimCorey 3 роки тому
Sweet!
@AonyjsViolmlar05
@AonyjsViolmlar05 2 роки тому
Great guide easy to follow and understand i hope you make a windows version of redis guide.
@tomthelestaff-iamtimcorey7597
@tomthelestaff-iamtimcorey7597 2 роки тому
Thanks for the recommendation. I have added it to Tim's list of viewer suggestions for videos.
@Rajeshsingh-ws5th
@Rajeshsingh-ws5th 3 роки тому
good one.
@IAmTimCorey
@IAmTimCorey 3 роки тому
Thank you! Cheers!
@dirshusiyum3544
@dirshusiyum3544 3 роки тому
Tim I really appreciate your video. Would you be able to do a video on how to do searching with caching,
@IAmTimCorey
@IAmTimCorey 3 роки тому
Thanks, I added it to the suggestion list.
@mdrahbarahmedkhan
@mdrahbarahmedkhan 3 роки тому
Hi Tim, Thank you very much for Redis tutorial. Really learned a lot from this. But I just wanted to confirm if the same process needs to be done if i wanna to install Redis on Windows Server 2016.
@IAmTimCorey
@IAmTimCorey 3 роки тому
You should be able to use Docker there as well, although you can directly install Redis if you want.
@justicearthur8613
@justicearthur8613 3 роки тому
Good job Bro. Am really enjoying your videos. Please make a video on sending emails with views like we have in laravel. Thanks
@IAmTimCorey
@IAmTimCorey 3 роки тому
Noted... Its also added to the list.
@ajv2544
@ajv2544 2 роки тому
Hi Tim, we can use Memurai, and AnotherRedisDesktopManager to manage memurai, its an alternative redis version for windows and more fast than redis. no need to run docker
@IAmTimCorey
@IAmTimCorey 2 роки тому
The downside is that you need to install it. By running a Docker container, I don't need to install anything - when I need Redis, I just run one command. When I don't need it anymore, I run another command and it is gone.
@montanomariano
@montanomariano Рік тому
Thanks Tim, I loved the explanation! Is it advisable to use redis in docker in production environment?
@IAmTimCorey
@IAmTimCorey Рік тому
You can. It depends on your need and what your setup looks like. Kubernetes is basically just a bunch of Docker containers. You put your entire stack in those sometimes. However, in other situations, it is better to have Redis on a dedicated server.
@montanomariano
@montanomariano Рік тому
@@IAmTimCorey thanks a lot for your answer!
@TaylorSchumacher255
@TaylorSchumacher255 3 роки тому
Thank you for the video! Could you do a video on Blazor WASM with Browser Cache? I am looking at doing a PWA and I wanted to understand the best practices for storing the data before going to the API (and failing gracefully when the API isn't available).
@IAmTimCorey
@IAmTimCorey 3 роки тому
Great suggestion! Added to the list.
@oliurrahman479
@oliurrahman479 Рік тому
Thanks for ur awesome & valuable video. I have one question. Imagine i have employee list of data into redis cache then i am creating a new employee. Now Can i set my new employee data into existing cache list data??
@IAmTimCorey
@IAmTimCorey Рік тому
You can invalidate the cache or add it to the cache.
@mutipotatohead
@mutipotatohead 3 роки тому
Tim thanks for a fantastic video! I am trying to deploy this but hit a snag: I have a console app that connects to redis ; both are on docker containers using docker-compose. What should the connection string be from my console app to access the redis container?
@IAmTimCorey
@IAmTimCorey 3 роки тому
You should have access to the container by name. You would use that name in the connection string.
@mutipotatohead
@mutipotatohead 3 роки тому
@@IAmTimCorey thank you! Love your videos btw. They give me a great starting point into new topics that would otherwise feel too daunting to start with!
@muhanad102
@muhanad102 2 роки тому
Hello Tim. I noticed that the extension where the Set and Get exist is "static". Does this affect the way the data is accessed in an async environment? Will the threads wait for the using thread to exist?
@user-jg7ly1ib2z
@user-jg7ly1ib2z 3 роки тому
Thank you so much. Can you tell us about the interaction of Redis with GraphQL, in particular with the HotChocolate library?
@tomthelestaff-iamtimcorey7597
@tomthelestaff-iamtimcorey7597 3 роки тому
That is a bit specific. I have added this to Tim's list of possible future topics. He uses the list to see common trends and requests that would help the most folks.
@brianbarnett208
@brianbarnett208 Рік тому
Great video Tim. I did have a question. Do you have any examples of setting up Redis to notify a .NET application/service whenever a key value gets changed? I've seen that Redis has that capability but haven't seen any .NET examples of how to subscribe to these event messages.
@IAmTimCorey
@IAmTimCorey Рік тому
I don't have that example, but if you want you can add it to the suggestion list: suggestions.iamtimcorey.com
@brianbarnett208
@brianbarnett208 Рік тому
@@IAmTimCorey can do. I did find some info on it here - stackoverflow.com/questions/23180765/redis-keyspace-notifications-with-stackexchange-redis
@mohammadanas3320
@mohammadanas3320 2 роки тому
Thanks
@IAmTimCorey
@IAmTimCorey 2 роки тому
You are welcome.
@cycostallion
@cycostallion 3 роки тому
Hi Tim, great short course to get started with Redis! While coding, I noticed you were getting an automatic prompt to bring in the namespaces of whichever classes you were using. It does not seem you were hitting Ctrl + . to import them. Please can you share what extension or option you are using to get that feature? Is it Resharper?
@IAmTimCorey
@IAmTimCorey 3 роки тому
That's part of the latest versions of Visual Studio 2019 (Community Edition).
@cycostallion
@cycostallion 3 роки тому
@@IAmTimCorey Thank you Tim, i will check it out in the latest version. I currently have Visual Studio Community 2019 Version 16.7.7
@girornsveinsson7970
@girornsveinsson7970 3 роки тому
Another question. What is the best way to handle it if the redis service is down and you cannot connect to it? Try-Catch in the LoadForecast() kind of solves it but it makes the application super slow if it is trying to connect to redis every time without success.
@nazuu
@nazuu 3 роки тому
Ty bro.
@tomthelestaff-iamtimcorey7597
@tomthelestaff-iamtimcorey7597 3 роки тому
Thank you for watching.
@chimaokoli4943
@chimaokoli4943 3 роки тому
Thanks a lot, Tim Corey. Please can you do a video on how to record tutorial videos for youtube? Do you record the video first before voice over or do you do both at the same time?
@IAmTimCorey
@IAmTimCorey 3 роки тому
I can add that to the suggestion list. As for your specific question, I do everything together. I don't do voice overs. It is way too complicated and messy to try to do it that way.
@chimaokoli4943
@chimaokoli4943 3 роки тому
@@IAmTimCorey Alright...Thanks a lot
@KenzoArts
@KenzoArts 3 роки тому
Would you please a tutorial or course about C# Socket Programming (e.g Client - Server desktop application) ? Thank you in advance. I like your courses
@IAmTimCorey
@IAmTimCorey 3 роки тому
Thanks, I will add this suggestion to my list.
@angrykarrot
@angrykarrot 3 роки тому
Hey Tim, I am a basic C# self-taught programmer and I do my projects on VS. Some of the projects that ive created are making a pyramid of stars, calculating any year to know if it is a leap year or not, and reading the size of each folder I have in my C drive. With that, I do not have a degree yet, and would like to know if I have a chance of getting a job at a company as a junior developer or likewise. Thank you Tim.
@IAmTimCorey
@IAmTimCorey 3 роки тому
I would suggest you need to build up some more breath. My Foundation series is the best place to start. If you have not already, check out this video - ukposts.info/have/v-deo/hIWnZmaIr46bx6s.html It is intended to help you assess where you are and the topics you need to add to your base skills. I believe it will help you build on that base you have already. My goal is to make becoming a developer easier and I hope I can help you be successful through your full journey! Just don't give up. Its a journey of a life time.
@kevinblount1242
@kevinblount1242 3 роки тому
Tim... I was wondering why you dont access the redis cache from behind the service layer (ie inthis case the ForecastService ... which generally would either be a Data library or an API and thence would be more usable if we switched from razor to something else ?
@IAmTimCorey
@IAmTimCorey 3 роки тому
This was a demo to show off how Redis works. It wasn't really designed to show it off in a real-world design. In the real-world, we wouldn't be getting data that is auto-generated. I put it where I did to show off what you would do at the end of the API, rather than mixing it with the data access and confusing people. I'll be using it in a start to finish course one of these days. Then I'll put it in the right place.
@kevinblount1242
@kevinblount1242 3 роки тому
@@IAmTimCorey Thanks for clearing that one up.... I suspected as much! How you get the time to do what you do is beyond me :-)
@marcusmaunula5018
@marcusmaunula5018 3 роки тому
I was wondering about In-memory caching vs ResponseCache. Have you talked about those in previous videos? Mainly for WebAPI
@IAmTimCorey
@IAmTimCorey 3 роки тому
I haven't yet. I'll put that suggestion on the list.
@zihasz5305
@zihasz5305 3 роки тому
Hi Tim! I would really love a tutorial on Redis with WinForms/WPF. Thanks in advance!
@IAmTimCorey
@IAmTimCorey 3 роки тому
Noted! Added to the list.
@zihasz5305
@zihasz5305 3 роки тому
@@IAmTimCorey Thank you so much!
@phizc
@phizc 3 роки тому
Thanks for an informative video. Except one thing. What steps do I need to take to have the docker cli command? I may not be part of your target audience. On one hand you have detailed descriptions of nullable and the null coalescing operator, and on the other you assume the audience is familiar with docker.. 🤔
@IAmTimCorey
@IAmTimCorey 3 роки тому
I have a very diverse audience and try not to make assumptions. Thanks for making me aware.
Intro to Azure Service Bus - The Power Behind Microservices
1:16:37
IAmTimCorey
Переглядів 130 тис.
Сакура із свічки
00:35
Afinka
Переглядів 151 тис.
Voloshyn - ЗУСИЛЛЯ (прем'єра треку 2024)
06:17
VOLOSHYN
Переглядів 899 тис.
маленький брат прыгает в бассейн
00:15
GL Show Russian
Переглядів 3,7 млн
Redis Crash Course
27:31
Web Dev Simplified
Переглядів 586 тис.
I've been using Redis wrong this whole time...
20:53
Dreams of Code
Переглядів 323 тис.
Зачем нужна база данных Redis и где она используется
13:24
Дмитрий Ченгаев. Веб-разработка.
Переглядів 15 тис.
Redis in 100 Seconds
2:26
Fireship
Переглядів 655 тис.
Intro to Health Checks in .NET Core
1:13:53
IAmTimCorey
Переглядів 48 тис.
5 New Features in C# 9 (not including Records)
1:11:00
IAmTimCorey
Переглядів 80 тис.
Redis за 20 минут
23:22
suchkov tech
Переглядів 78 тис.
Faster .NET apps with Redis Output Caching - It's simple now!
10:00
The Code Wolf
Переглядів 1,7 тис.
How I Would Learn To Code (If I Could Start Over)
13:43
Namanh Kapur
Переглядів 6 млн
WebAPI Improvements in .NET 5 - OpenAPI, Better F5, and NSwag
46:48
IAmTimCorey
Переглядів 99 тис.
Сакура із свічки
00:35
Afinka
Переглядів 151 тис.