Import/Export Cache Data
NCache provides users with the ability to backup cache data for later use. To create the backup use the 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 relevant Lucene documents using the Import-CacheData
PowerShell tool. It is important to note that, you can only restore data for a distributed cache using the Import and Export cache data tools 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-CacheData
and Import-CacheData
tools.
Export Cache Data
The Export Cache Data
tool enables the user to create a backup of the data present in the cache along with the Lucene documents for later use. 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 tool 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