TAGS :Viewed: 18 - Published at: a few seconds ago

[ Want to keep data in AppFabric Cache intact after cluster restart ]

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

Answer 1


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.

Answer 2


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