Import/Export Cache Data
This feature is only available in NCache Enterprise Edition.
NCache allows to backup cache data for later use. In order to create the backup use
Export-CacheData PowerShell tool. Once data is exported, you can get all the items present in the existing backup of the cache along with the Lucene documents using
Import-CacheData PowerShell tool. It is important to note that, you can only restore data for a distributed cache using Import and Export cache data tools together. This is also helpful when you are updating NCache version and want to restore the cached data for later use.
Cache name must be same while using
Export Cache Data
Export-CacheData cmdlet enables the user to create a backup of the data present in the cache along with the Lucene documents for later use.
- This command exports the data from a cache named demoCache to the specified path including the dependent assembly files.
Export-CacheData -Name demoCache -Path C:\Backup-path
Import Cache Data
You can use
Import-CacheData cmdlet in order to restore the data which was backed up using
- This command imports the data from the backup source placed on the specified path to the cache including the dependent assembly files.
Import-CacheData -Name demoCache -Path C:\Backup-path