Cookie Consent by Free Privacy Policy Generator AppFabric Migration to NCache Seamlessly

Seamless AppFabric Migration to NCache

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.

Migration Steps from AppFabric to NCache

Step 1: Remove the Microsoft.ApplicationServer.Caching.Client NuGet package or the references of the following AppFabric libraries from your application's source code:

  1. Microsoft.ApplicationServer.Caching.Client.dll
  2. Microsoft.ApplicationServer.Caching.Core.dll

Step 2: Remove the following namespaces from your project:

  1. Microsoft.ApplicationServer.Caching
  2. Microsoft.ApplicationServer.Caching.Client
  3. Microsoft.ApplicationServer.Caching.Core

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.

NCache - An Ideal Alternative to AppFabric

Listed below are some of the reasons why NCache is an ideal replacement of AppFabric for your .NET/.NET Core application.

  • 100% .NET/.NET Core Cache
  • Powerful GUI Admin tools
  • Available for both cloud and on-prem based applications
  • Windows Server 2019 Certified

NCache AppFabric Migration Resources

What to Do Next?

Download NCache
Edition Comparison

© Copyright Alachisoft 2002 - . All rights reserved. NCache is a registered trademark of Diyatech Corp.