Skip to content

Akavache initialisation issue #516

Open
@TcMarsh31

Description

@TcMarsh31

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions