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
2
votes
1 answer

Async await call does not return

I have a problem, where i call an async method, and the call does not return back. I assume its a race of threads. How do I write this correctly? This is where it starts. I first call an async method called "GetCachedValuesAsync" public void…
Libin Joseph
  • 7,070
  • 5
  • 29
  • 52
2
votes
1 answer

LoadImageFromUrl IBitmap to ImageSource

I am using the code below the Akavache to cache images. Return is an IBitmap, how can I convert this IBitmap to an ImageSource? var url = "https://ashdbhjas/image.png"; ImageSource imageSrc = await BlobCache.LocalMachine.LoadImageFromUrl(url); //…
Anpeiron
  • 43
  • 1
  • 6
2
votes
1 answer

How to specify HTTP timeout for DownloadURL() in Akavache?

I am developing an application targetting mobile devices, so I have to consider bad network connectivity. In one use case, I need to reduce the timeout for a request, because if no network is available, that's okay, and I'd fall back to default data…
Uwe Post
  • 518
  • 4
  • 10
2
votes
2 answers

Azure MobileServices and Akavache

I'm build a xamarin forms app using Azure Mobile Services for offline sync - versions are: Microsoft.Azure.Mobile.Client 3.1.0 Microsoft.Azure.Mobile.Client.SQLiteStiore 3.1.0 SQLitePCL 3.8.7.2 SQLitePCLRaw.bundle_green 1.1.2 SQLitePCLRaw.core…
markpirvine
  • 1,485
  • 1
  • 23
  • 54
2
votes
1 answer

How to implement search for large data using Akavache?

I have been working in an android application using Xamarin Forms and using Akavache for storing data locally in device. Until now it's all prefect, but now I need to save some more data(around 10 to 20 thousand records) and provide search…
Parth Patel
  • 3,937
  • 2
  • 27
  • 44
2
votes
1 answer

Cannot get Akavache to work using PCL Xamarin Forms app

I've been struggling with this for 4 hours now and I'm now turning in circles. I'm trying to get Akavache to run for my project. The project is a out-of-the-box Xamarin Forms (Portable) type. Then using Nuget I added Akavache 4.1.2 (which also added…
Peter Donker
  • 328
  • 2
  • 15
2
votes
1 answer

Unit Testing Cache Behaviour of Akavache with TestScheduler

So I'm trying to test caching behaviour in an app that's using Akavache. My test looks like this: using Akavache; using Microsoft.Reactive.Testing; using Moq; using NUnit.Framework; using ReactiveUI.Testing; using System; using…
germi
  • 4,628
  • 1
  • 21
  • 38
2
votes
0 answers

Persisting derived types in cache

I would like to persist my derived types in Akavache's Cache using GetAndFetchLatest, and I've run into some difficulties. My POCOs are as follows: class TableCell {} class PhoneCell : TableCell {} class nCell : TableCell {} These types are stored…
DarthVadar123451
  • 619
  • 1
  • 6
  • 14
2
votes
1 answer

OutOfMemoryException using Bitmaps in Xamarin.Android

I'm facing an OutOfMemoryException when I try to download images (that can be large images). I'm working with Xamarin.Android and a PCL for cross-platform actions. I want to do an image slideshow. I have a limited number of imageviews superposed on…
Jordan Gueguen
  • 128
  • 3
  • 11
1
vote
0 answers

How to prevent UTC conversion when using Akavache in Xamarin.Forms with local time zone?

I'm developing a Xamarin.Forms project and utilizing Akavache as a caching solution. In my code, I have set the localBlobCache instance to BlobCache.LocalMachine to ensure it uses the time zone of my local environment. However, I have observed that…
SarPa
  • 35
  • 8
1
vote
0 answers

Xamarin.Android Akavache throwing System.InvalidOperationException

I am creating a XamarinAndroid application, on one activity my akavache works perfectly fine, inserting / removing objects. On another activity Akavache keeps returning this Exception: System.InvalidOperationException:** 'Sequence contains no…
1
vote
0 answers

Akavache for Xamarin Forms and many user instances

I am trying to get some clarity on how I can use Akavache for multiple users on the same phone. I am currently using BlobCache.LocalMachine, and I am getting and setting cached data using GetOrFetchObject( key ) and InsertObject( key ). What I am…
Reza
  • 5,314
  • 5
  • 21
  • 35
1
vote
0 answers

Xamarin Forms blank screen on launching

I use Xamarin Forms for my mobile app. In the initialization of my app I want to load my configuration. I save it in cache with Akavache. I launch this method in my onstart method in App.xaml when there is my splash screen. It works well but when I…
dalton5
  • 915
  • 2
  • 14
  • 28
1
vote
1 answer

Is this pattern OK for loading&caching data by Akavache in ViewModel and binding them to UI in Xamarin.Forms?

I am trying to find some 'best practice' sample how to use Xamarin.Forms, ReactiveUI and Akavache in realworld scenario. Lets say there is simple page representing Customer Detail. It should retrieve data from server when activated (navigated to). I…
alesdvorak.cz
  • 133
  • 1
  • 10
1
vote
2 answers

Attempting to JIT compile method 'Akavache.Sqlite3.Registrations:Register (Splat.IMutableDependencyResolver)' while running in aot-only mode

Xamarin.iOS Xamarin.Forms 3.6 akavache v6.4.1 The type initializer for 'Akavache.BlobCache' threw an exception. Attempting to JIT compile method 'Akavache.Sqlite3.Registrations:Register (Splat.IMutableDependencyResolver)' while running in aot-only…
codetale
  • 87
  • 6