Skip to content

Commit 4499dd4

Browse files
committed
Merge pull request #293 from kentcb/Shutdown
Add Shutdown docs to README.
2 parents 53836cb + 9a6be07 commit 4499dd4

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,16 @@ toaster = await BlobCache.UserAccount.GetObjectAsync<Toaster>("toaster")
116116
.Catch(Observable.Return(new Toaster()));
117117
```
118118

119+
### Shutting Down
120+
121+
Critical to the integrity of your Akavache cache is the `BlobCache.Shutdown()` method. You *must* call this when your application shuts down. Moreover, be sure to wait for the result:
122+
123+
```cs
124+
BlobCache.Shutdown().Wait();
125+
```
126+
127+
Failure to do this may mean that queued items are not flushed to the cache.
128+
119129
### Examining Akavache caches
120130

121131
Using [Akavache Explorer](https://github.com/paulcbetts/AkavacheExplorer), you

0 commit comments

Comments
 (0)