Latest deals
Technology
Apple
Artificial Intelligence
Big Data
Cyber Security
Gadgets
Startup
Cloud Computing
More
Drone
Mobile
Robotics
Software Development
Search
Home
Tags
ASP.NET
Tag: ASP.NET
Cloud Computing
How one can implement caching in ASP.NET Core minimal APIs
admin
-
September 14, 2025
0
Cloud Computing
Find out how to add recordsdata utilizing minimal APIs in ASP.NET Core
admin
-
August 23, 2025
0
Cloud Computing
How one can implement idempotent APIs in ASP.NET Core
admin
-
March 23, 2025
0
Cloud Computing
Don’t use public ASP.NET keys (duh), Microsoft warns
admin
-
February 12, 2025
0
Cloud Computing
Learn how to use resource-based authorization in ASP.NET Core
admin
-
January 26, 2025
0
Cloud Computing
You can leverage the power of FusionCache, a distributed caching solution, within your ASP.NET Core application to boost performance and scalability. To get started, you’ll need to install the FusionCache NuGet package and configure it in your Startup.cs file. “`csharp public void ConfigureServices(IServiceCollection services) { services.AddFusionCache(options => { options.ConnectionString = “connection_string”; options.Serializer = new BinarySerializer(); }); } “` Once configured, you can use the caching mechanism throughout your application. Here’s a simple example of how to store and retrieve data: “`csharp public IActionResult Index() { var cacheKey = “my_data_key”; if (!FusionCache.TryGetValue(cacheKey, out myData)) { // Cache miss: retrieve data from database or other source myData = Database.Query
(); FusionCache.Set(cacheKey, myData); } return View(myData); } “` In this scenario, the data is stored in cache when it’s first retrieved, and subsequent requests will use the cached data to improve performance.
admin
-
September 22, 2024
0