Try Playground
Show / Hide Table of Contents

Import/Export Cache Data

NCache provides users with the ability to backup cache data for later use. To create the backup use the Export Cache Data PowerShell Cmdlet. Once data is exported, you can get all the items present in the existing backup of the cache using the Import Cache Data PowerShell Cmdlet. It is important to note that, you can only restore data for a distributed cache using the Import and Export cache data cmdlets together. This is also helpful when you are updating the NCache version and want to restore the cached data for later use.

Important

The cache name must be the same while using Export Cache Data and Import Cache Data cmdlets.

Export Cache Data

The Export Cache Data cmdlet enables the user to create a backup of the data present in the cache. The following command exports the data from a cache named demoCache to the specified path including the dependent assembly files.

  • Windows
  • Linux
Export-CacheData -Name demoCache -Path C:\Backup-path
export-cachedata -name demoCache -path /user/share/Backup-path

Import Cache Data

You can use the Import Cache Data cmdlet to restore the data that was backed up using the Export Cache Data tool. The following command imports the data from the backup source placed on the specified path to the cache including the dependent assembly files.

  • Windows
  • Linux
Import-CacheData -Name demoCache -Path C:\Backup-path
import-cachedata -name demoCache -path /user/share/Backup-path

See Also

Start Cache
Restart Cache
Manage Cache Service on a Server Node

In This Article
  • Export Cache Data
  • Import Cache Data
  • See Also

Contact Us

PHONE

+1 (214) 764-6933   (US)

+44 20 7993 8327   (UK)

 
EMAIL

sales@alachisoft.com

support@alachisoft.com

NCache
  • NCache Enterprise
  • NCache Professional
  • Edition Comparison
  • NCache Architecture
  • Benchmarks
Download
Pricing
Try Playground

Deployments
  • Cloud (SaaS & Software)
  • On-Premises
  • Kubernetes
  • Docker
Technical Use Cases
  • ASP.NET Sessions
  • ASP.NET Core Sessions
  • Pub/Sub Messaging
  • Real-Time ASP.NET SignalR
  • Internet of Things (IoT)
  • NoSQL Database
  • Stream Processing
  • Microservices
Resources
  • Magazine Articles
  • Third-Party Articles
  • Articles
  • Videos
  • Whitepapers
  • Shows
  • Talks
  • Blogs
  • Docs
Customer Case Studies
  • Testimonials
  • Customers
Support
  • Schedule a Demo
  • Forum (Google Groups)
  • Tips
Company
  • Leadership
  • Partners
  • News
  • Events
  • Careers
Contact Us

  • EnglishChinese (Simplified)FrenchGermanItalianJapaneseKoreanPortugueseSpanish

  • Contact Us
  •  
  • Sitemap
  •  
  • Terms of Use
  •  
  • Privacy Policy
© Copyright Alachisoft 2002 - 2025. All rights reserved. NCache is a registered trademark of Diyatech Corp.
Back to top