AppFabric has been discontinued by Microsoft and as a result, all AppFabric users are looking for caching solutions that are a good alternative to AppFabric so they can migrate their application to it. NCache, an extremely fast and scalable distributed cache, provides a perfect AppFabric migration platform.
NCache provides a wrapper for AppFabric that makes the migration from your AppFabric application to NCache seamless. This NCache AppFabric wrapper lets you migrate your application by simply editing the namespaces and appSettings of your application. Let’s go through the steps required for migration:
Full documentation available for NCache Wrapper as well as an AppFabric Migration Guide.
Step 1: Remove the Microsoft.ApplicationServer.Caching.Client NuGet package or the references of the following AppFabric libraries from your application's source code:
Step 2: Remove the following namespaces from your project:
Step 3: Download the NCache AppFabric wrapper NuGet package in your application. You can find this NuGet package here.
Step 4: Add the Alachisoft.NCache.Data.Caching namespace in your project.
Step 5: Configure the appSettings section of your App.config as shown below:
<add key="Default" value="name-of-the-default-cache-here"/> <add key="Expirable" value="True"/> <add key="TTL" value="hh:mm:ss"/>
Step 6: If you are using the in-process cache that comes preconfigured in config.ncconf, then add the name of the local cache as the cacheName. If you are not using the local in-process cache, then you need to make sure the cache you want to use is created, running, and referenced as the cacheName. Here are the steps required to Create a Cache.
To get a detailed guide on how to migrate from AppFabric to NCache, refer to our documentation on AppFabric to NCache Migration.
Listed below are some of the reasons why NCache is an ideal replacement of AppFabric for your .NET/.NET Core application.
+1 (214) 764-6933 (US)
+44 20 7993 8327 (UK)