Akavache icon indicating copy to clipboard operation
Akavache copied to clipboard

Akavache initialisation issue

Open TcMarsh31 opened this issue 6 years ago • 1 comments

I am currently working on xamarin forms application development. i am facing issue in intializing akavache. when i initialise akavache InMemoryCache is getting created. all the below caches are null.

  • BlobCache.LocalMachine
  • BlobCache.UserAccount
  • BlobCache.Secure

I used below code to initialise securecache, BlobCache.ApplicationName = "xamarinAkavacheTest"; var fsprovider = Locator.Current.GetService<IFilesystemProvider>(); var root = fsprovider.GetDefaultSecretCacheDirectory(); var dbName = "mysecrets.db"; var path = Path.Combine(root, dbName); var encryptedCache = new SQLiteEncryptedBlobCache(path);

where i get System.NullReferenceException: 'Object reference not set to an instance of an object'

Can you guide me how to initialise each cacheMemory.?

I am using visual studio 2019. akavache 6.8.1 Running in IOS simulator iphone 11 pro 13.0

TcMarsh31 avatar Sep 30 '19 08:09 TcMarsh31

Hey @TcMarsh31 :wave:,

Thank you for opening an issue. We will get back to you as soon as we can. Also, check out our Open Collective and consider contributing financially.

https://opencollective.com/reactiveui

PS.: We offer priority support for all financial contributors. Don't forget to add priority label once you start contributing :smile:

An advanced, composable, functional reactive model-view-viewmodel framework for all .NET platforms!