Akavache
Akavache copied to clipboard
Async: BlobCache.LocalMachine.Shutdown or BlobCache.Shutdown
We need Async mechanism to shutdown the BlobCache.LocalMachine correctly.
There are various posts on the Akavache issues on this topic.
Option 1: Async BlobCache.Shutdown().Wait(); (However no dispose takes place?)
Option 2: Async (According to code comments Dispose is needed before shutdown.Wait) BlobCache.LocalMachine.Dispose(); BlobCache.LocalMachine.Shutdown.Wait();
Appreciate guidance as we cannot afford cache corruption or cache being lost for any reason.
@mdonogma - I basically prefer doing it simply by calling
BlobCache.LocalMachine.InvalidateAll();