Questions tagged [akavache]

Akavache is an asynchronous, persistent (i.e. writes to disk) key-value store created for writing desktop and mobile applications in C#. Think of it like memcached for desktop apps.

Akavache is an asynchronous, persistent (i.e. writes to disk) key-value store created for writing desktop and mobile applications in C#. Think of it like memcached for desktop apps.

91 questions
1
vote
1 answer

Is akavache thread safe on iOS?

I am using akavache component for caching on xamarin forms project. The app works fine on android but crashes in unexpected moments on iOS. This could be to accessing the sql resource by multiple threads. Akavache uses sql lite raw and this needs to…
koshiMan88
  • 41
  • 7
1
vote
0 answers

Reactive Extensions, Akavache and Refit is too much for Windows Phone's Internal Card

I want to use paulcbetts/refit in my application and akavache/Akavache. Problem is that according to my logic, Windows Phone doesn't like that I do the following: I get semester (from cache, then fetch), pick the wanted semester (I put H2014 for…
1
vote
0 answers

Akavache not working in Windows 8.1 Universal App

I’m trying to make work Akavache in a Windows Universal Application (8.1 for now, using ReactiveUI 6.5). To make sure that it is not related to my architecture, I did an empty solution that has all the necessary packages and requirements (VC++ for…
1
vote
1 answer

Newtonsoft.Json.JsonSerializationException when fetching an object from Akavache storage

When putting an instance of an object into the Akavache-storage, all works out. But when trying to get it from the storage, I get the following error message: Newtonsoft.Json.JsonSerializationException: Unexpected token while deserializing object:…
SimonSimCity
  • 6,415
  • 3
  • 39
  • 52
1
vote
1 answer

Showing Images in list view adapter using Akavache

I am developing a cross platform application using Xamarin. I found Akavache but I couldn't handle image loading using Akavache in listview adapter. It is working really slow. So I need to fix it or find another way to handle this. I couldn't find a…
Oguz Ozcan
  • 1,694
  • 19
  • 26
1
vote
1 answer

What's the right way to use Akavache's LoadImageFromUrl in a Windows Phone project?

The goal is to asynchronously fetch an image from a url and then set it to a BitmapSource viewmodel property (which is databound in a view). I can use LoadImageFromUrl to get a Splat.IBitmap, but I can't figure out how to connect that to a…
Factor Mystic
  • 26,279
  • 16
  • 79
  • 95
0
votes
0 answers

TargetInvocationException when trying to bind an image using WPF, ReactiveUI and Akavache

Currently I'm re-writing an WPF APP with .NET7 and ReactiveUI. I love the ReactiveUI framework and how easy async stuff can be achieved. However I'm struggling to binding an image. I keep getting a TargetInvocationException. My idea is to have an…
0
votes
1 answer

Adding Akavache Static Linker class or Initializer error

I'm currently using Visual Studio Mac 2019 for to build my iOs Xamarin Forms Application. My Application Akavache to store persistent data specifically credentials which I utilizes its BlobCache.Secure storage, but sadly the data doesn't persist. I…
lancelot
  • 21
  • 4
0
votes
0 answers

How to use Akavache with .NET MAUI

.NET MAUI provides DI out of the box and uses familiar builder pattern from .NET Core. I was wondering how can one register Akavache as an injectable dependency to work with MAUI? Couldn't see anything specific in their own documentation so was…
envyM6
  • 1,099
  • 3
  • 14
  • 35
0
votes
0 answers

Akavache throwing System.MissingMethodException: Only when Xamarin.Forms Android app is built on VS2022

I have an app made with Xamarin Forms, that uses Akavache to cache data. The app works well on iOS and Android in debug mode when I make a build with VS2019 But when I installed VS2022 and decided to make a build for android, an error occurred. This…
Damien Doumer
  • 1,991
  • 1
  • 18
  • 33
0
votes
1 answer

Akavache and collectionChanged event

(1) I am having trouble getting the CollectionChanged event of an ObservableCollection to fire whilst using Akavache, here is the code I have (simplified) GraphCollection = new ObservableCollection(); …
Reza
  • 5,314
  • 5
  • 21
  • 35
0
votes
0 answers

Is it possible to update an object for a given key in an Akavache cache?

I'm trying to understand how to properly use Akavache. I have a List that I store in the Akavache BLOB cache with the key ObjectAKey. I insert it using Akavache's GetOrFetchObject() method. I can recall List from my Akavache BLOB cache by calling…
J.D.
  • 954
  • 6
  • 22
0
votes
0 answers

Persistent chat message with Akavache in Xamarin.forms

I am new to Xamarin Forms. I am building a chat App with Xamarin Forms and Signalr and I want to make the chat messages persistent just like WhatsApp. I'm using Akavache, but I don't seem to be succeeding. I have this code snippet in my ChatPage…
Xsamms
  • 1
  • 3
0
votes
0 answers

Cache reading fails in Xamarin.iOS with Akavache

In a cross-platform project we use Akavache as our cache. The target is .Net Standard 2.1, and we use version 6.10.20. We simply use the following for writing: await cache.InsertObject(userIDKey, userID); For reading: await…
Nestor
  • 8,194
  • 7
  • 77
  • 156
0
votes
1 answer

First view not shown properly when Akavache is used before

If I'm fetching an object from cache before showing my first view, then the app will just show a blank white page instead (on Android, didn't test other platforms). If I lock the screen and unlock it, then my view shows. It's quite simple to…
Inrego
  • 1,524
  • 1
  • 15
  • 25