Description
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