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.
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.
See Also
Start Cache
Restart Cache
Manage Cache Service on a Server Node