Want to keep data in AppFabric Cache intact after cluster restart

109 Views Asked by At

I want to keep the data in AppFabric Cache intact on Cluster restart. It normally flushes all the data in cache. Can anyone tell me is this possible to fulfill this requirement?

Thanks, Ankit

2

There are 2 best solutions below

0
Sameer Shah On BEST ANSWER

Any in-memory cache when restarted will flush all data. Since data is in process' memory, when process restarts all data will be lost.

However some caching solutions like NCache provide features such as cache startup loader which can be used to pre-populate cache at startup or after restart with configurable set of data. E.g. you can easily maintain a list of keys on each node (using a write-behind provider etc) and at server restart populate cache with that set of keys and data using startup loader.

Unfortunately cache startup loader feature is not available in Appfabric cache.

0
Hossam Barakat On

This feature is not currently supported inside the AppFabric however there are other cache providers enabling this features such as Redis also try not to implement this feature yourself as there are a lot of pitfalls and for details you can check the following links