Akavache icon indicating copy to clipboard operation
Akavache copied to clipboard

Output a warning if queries are being ran against the default InMemoryCache providers

Open PureWeen opened this issue 8 years ago • 1 comments

Do you want to request a feature or report a bug? features

What is the current behavior? Currently if the resilient SqlLite storage blobs don't get registered for whatever reason (missing package or linked out) then everything just runs as normal against InMemory cache which isn't obvious to the user

If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem Use Akavache on iOS without Preserving the SQLiteEncryptedBlobCache and it'll just run against InMemory whereas Android will run against Sql Lite

What is the expected behavior? I'm thinking a warning message just to the debug output saying something like

Warning: Currently this is just using InMemory cache if you are wanting to use the resilient SqlLite cache check that "SQLiteEncryptedBlobCache" isn't being linked out.

This can just be included with the InMemoryBlobCaches that get registered in Registration.cs so warning just outputs first time

What is the motivation / use case for changing the behavior? Limit Confussion

PureWeen avatar Oct 07 '17 21:10 PureWeen

Decent idea; maybe careful about language of "SQLiteEncryptedBlobCache" what happens if a consumer (non-technical) person comes across this message in their logs?

ghuntley avatar Oct 07 '17 22:10 ghuntley