Akavache icon indicating copy to clipboard operation
Akavache copied to clipboard

Async: BlobCache.LocalMachine.Shutdown or BlobCache.Shutdown

Open ghost opened this issue 8 years ago • 1 comments

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.

ghost avatar Mar 20 '17 22:03 ghost

@mdonogma - I basically prefer doing it simply by calling BlobCache.LocalMachine.InvalidateAll();

hamid-shaikh avatar Aug 02 '17 14:08 hamid-shaikh