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.

Filter by
Sorted by
Tagged with
1 vote
0 answers
55 views

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 ...
SarPa's user avatar
  • 35
0 votes
0 answers
106 views

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 ...
Jens Eisenbach's user avatar
0 votes
1 answer
83 views

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....
lancelot's user avatar
0 votes
0 answers
344 views

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 ...
envyM6's user avatar
  • 1,109
1 vote
0 answers
77 views

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....
Christopher Heeley's user avatar
0 votes
0 answers
156 views

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 ...
Damien Doumer's user avatar
1 vote
0 answers
139 views

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 ...
Reza's user avatar
  • 5,324
0 votes
1 answer
46 views

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 ...
Reza's user avatar
  • 5,324
0 votes
0 answers
256 views

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 ...
J.D.'s user avatar
  • 954
1 vote
0 answers
486 views

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 ...
dalton5's user avatar
  • 915
0 votes
0 answers
115 views

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 ...
Xsamms's user avatar
  • 1
0 votes
0 answers
103 views

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, ...
Nestor's user avatar
  • 8,204
0 votes
1 answer
126 views

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, ...
Inrego's user avatar
  • 1,524
0 votes
1 answer
135 views

Akavache init and registering a constant in Prism for DI

I am using Akavache and would like to register the constant BlobCache.LocalMachine such that when I inject IBlobCache in the constructor of my viewmodels it just picks it up. I believe the Ninject ...
Reza's user avatar
  • 5,324
0 votes
1 answer
515 views

Problem of Xamarin.Form (ListView not refresh if binding from Akavache cache)

I met a problem with refresh list. I'm using MasterDetailPage with init default in Visual Studio 2019 (Xamarin.Forms 4.3.0.991250) & Akavache 6.6.1, has a variable is Items of type ...
user3871197's user avatar
0 votes
0 answers
34 views

Accessing Akavache DatabasePath Value

In my project I am trying to use the DatabasePath value that is in my Akavache object. The odd thing is that I can only seem to see and access the DatabasePath property value during Debug mode only. ...
Kai Wen's user avatar
0 votes
0 answers
212 views

Using Akavache Database In Xamarin Forms Project

Using Visual Studio 2019 Xamarin Forms 4.2 .Net Standard 2.0 Framework I am working on a Xamarin Forms project in which I am using Akavache to do some caching of the data which works fine, but I also ...
Kai Wen's user avatar
0 votes
2 answers
212 views

Get JSON string from Akavache

My Xamarin app has some cached objects with Akavache. For testing purposes, I'm trying to get the cached data in raw JSON string format. I've tried the following, but I'm getting a weird string: ...
Elton Santana's user avatar
0 votes
1 answer
90 views

Summer time not persisted

If I put a summer time date into the cache then it comes out without the summer time applied. e.g. 14:00+1 (15:00) comes back out of the cache as 14:00. In non-summer time, there's no problem. I've ...
Ian Warburton's user avatar
0 votes
1 answer
249 views

Akavache not storing/returning a NodaTime LocalDateTime

I need to store a NodaTime LocalDateTime in an Akavache cache. I've created a simple app which takes the following class and stores/retrieves it in/from an Akavache cache: public class TestModel { ...
James Lavery's user avatar
1 vote
1 answer
339 views

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 ...
alesdvorak.cz's user avatar
0 votes
1 answer
90 views

Avoiding multiple calls in observable pipeline

I am trying to create a GetAndFetch method that would first return data from the cache, then fetch and return data from a webservice, and finally update the cache. Such a function exists in akavache ...
resp78's user avatar
  • 1,414
1 vote
2 answers
164 views

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....
codetale's user avatar
0 votes
0 answers
438 views

Akavache.BlobCache Ambiguous call to System.Reactive.Linq.Observable (CS0121)

In a Xamarin iOS project I am getting error CS0121 for every async use of BlobCache after upgrading from akavache 4.1.2 to the newest 6.3.2: The call is ambiguous between the following methods or ...
Tarostar's user avatar
  • 1,196
1 vote
2 answers
347 views

How to subscribe new value in Akavache?

I'm using Akavache's GetAndFetchLatest method and I have created dependency services to communicate with Akavache's method. I'm calling akavache from service layer successfully when i directly ...
Dhruv's user avatar
  • 90
1 vote
0 answers
191 views

Xamarin.Forms - Akavache how to recreate Sqlite3 connection after BlobCache.Shutdown()

I want the user to be able to leave the App and to come back as many times as he wants. Saving its data in the cache each time the app is sent background. When my App on Xamarin.Forms goes "OnSleep()"...
Jeff's user avatar
  • 31
1 vote
0 answers
260 views

The latest version (6.0.20) of Akavache seems to be partly broken when used in Xamarin.iOS?

I was originally trying to fetch and cache an image using BlobCache.LocalMachine.LoadImageFromUrl(someURL), but I found that it just stopped responding after I called this method. (Yes, I've set ...
raymond_u's user avatar
1 vote
1 answer
38 views

What is new in Akavache v6.0.17-beta that i can tap(I cant find the release note)

What is new in Akavache v6.0.17-beta that i can tap(I cant find the release note) I am have been waiting for any update on this great library.
Chrisgate's user avatar
0 votes
0 answers
68 views

Is it possible to use pure functionality of sqlite-net-pcl and Akavache using it in same project?

In Akavache docs said that it's powered by SQLite. And from what I heard Akavache is quite nice tool for the key-value storage and sometimes you just don't want to store some cached data into SQL. ...
Agat's user avatar
  • 4,587
1 vote
1 answer
148 views

Could not find Akavache GetObjectAsync method

I've installed akavache Nuget package (tried v5.0 and v6.0.0-alpha and I am using .NET Standard), but don't have access to GetObjectAsync mentioned in many examples through the web. (Even on the ...
Agat's user avatar
  • 4,587
0 votes
1 answer
470 views

akavache not caching in ios simulator/device

using xamarin forms v.3.1 and akavache v5 + akavache.sqlite3 v5. in app.xaml.cs I initialized akavache BlobCache.ApplicationName = "EF_Cache"; BlobCache.EnsureInitialized(); And to ...
Ahmed Sayed's user avatar
1 vote
1 answer
121 views

What does "linked out by Xamarin" mean?

In the Akavache docs, it says... Add the following class anywhere in your project to make sure Akavache.Sqlite3 will not be linked out by Xamarin What does "linked out by Xamarin" mean?
Ian Warburton's user avatar
0 votes
0 answers
94 views

Cannot AOT Akavache.Sqlite3.dll

Fine on debug, but on release I get... Error MT3001: Could not AOT the assembly Akavache.Sqlite3.dll' (MT3001) (iOS) Any ideas? Akavache.Sqlite3 is version 5.0.0. I found this from five years ...
Ian Warburton's user avatar
0 votes
1 answer
227 views

Is Akavache Secure blob genuinely secure yet on Xamarin?

This article from a quarter of a decade ago says that Akavache is insecure on Xamarin even when using the Secure container. I'm using Xamarin.Forms and I'm wondering if this is still the case.
Ian Warburton's user avatar
1 vote
2 answers
106 views

Reading Akavache cache from Swift

I'd like to load Akavache data from Swift. I've found myapp.db{-wal,-shm} files under Library/Application Support/MyApp/BlobCache and can read myapp.db, but I'm not sure how to read key-values from ...
David Siegel's user avatar
  • 1,604
1 vote
2 answers
4k views

Circular dependency detected when installing Nuget package, Akavache 6.0.0-alpha0038

I'm getting a 'Circular dependency detected' error when I'm trying to install Akavache 6.0.0-alpha0038 into my Xamarin.IOs project in Visual Studio 2017. This is the error in detail, Error ...
Rizan Zaky's user avatar
  • 4,250
2 votes
2 answers
806 views

Akavache: saved value not available after iOS app restart

I am using Akavache standard approach on iOS (actually, it's .NET Standard project for Android/iOS), but the issue appears with iOS only. I save some value during the app lifecycle: await ...
Agat's user avatar
  • 4,587
0 votes
1 answer
478 views

Xamarin - Akavache vs Native Key-value Store such as NSUserDefaults

Both seem to be ways to store key value pairs. I am trying to decide what to use with my xamarin forms app. I would like the information saved to be available on connected devices. I see akavache ...
SolidSnake4444's user avatar
2 votes
1 answer
564 views

Akavache Unit is defined in an assembly not referenced: System.Reactive.Core version 2.2.5.0. Not available on nuget

I'm using the latest version of xamarin forms (as of 12/17/17) and I'm unable to use the following line in akavache: await BlobCache.UserAccount.InsertObject(key, value); Without getting the error: ...
SolidSnake4444's user avatar
-2 votes
1 answer
231 views

Calling Akavache synchronously causes deadlock [duplicate]

I am trying to use Akavache's BlobCache.InMemory.GetOrCreateObject to add caching to one of my database table, when I call it asynchronously, everything is fine. But since async requires caller to ...
imgen's user avatar
  • 2,823
0 votes
1 answer
276 views

IObservable doesnt Contain the defintion, but actualy there is the definition in there

I Try to load cached data via Akavache, but i dont know why i cant get it right. i try to get FullName and Email that i already cached after login , so i getobject in my "CachedUser" model but dont ...
Theodorus Agum Gumilang's user avatar
1 vote
1 answer
908 views

Possible bug in Akavache in Xamarin.Forms / Xamarin iOS

Implementation of Akavache works on Android debug and release and iOS debug mode. However, it crashes on iOS release mode. The exception thrown, intercepted from Raygun, is The type initializer for '...
Mr. 笑哥's user avatar
1 vote
1 answer
875 views

Akavache or Sqlite is crashing When Calling in OnStart method

When I use the code below in my xamarin.forms project to check if User object exist in akavache cache, I am getting the exception below. the same code or any akavache query works somewhere else but ...
Emil's user avatar
  • 6,449
2 votes
0 answers
73 views

Cross app key sharing with Akavache Xamarin

I have implemented the Akavache to work with my Xamarin.Android app. The saving and retrieval of keys work fine. I wanted to achieve a single sign on experience over two of my apps. I wanted to know ...
Pooja Gaonkar's user avatar
2 votes
1 answer
2k views

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 ...
Libin Joseph's user avatar
  • 7,098
5 votes
1 answer
1k views

Xamarin.iOS / Akavache / Encrypted Cache Working Example

Does anyone have and is willing to share a working example of using Akavache in a Xamarin.iOS project (ideally without any other add on ui frameworks, as bare bones as possible) implementing a custom ...
Dmitry Samuylov's user avatar
6 votes
1 answer
695 views

Xamarin.iOS / Akavache - Encrypted Cache with custom EncryptionProvider

I have a Xamarin.iOS app that is using Akavache to cache data and reduce the number on unnecessary requests to the server for data. Everything is working great as expected using BlobCache.LocalMachine,...
Dmitry Samuylov's user avatar
0 votes
0 answers
130 views

How do you ensure a mix of Tasks, Observables, and Method calls all execute on the same thread

I'm in a situation where I have a particular sequence of operations that need to occur on the SAME THREAD, but the operations are a mix of Tasks, Observables, and various random code and method calls, ...
DennisWelu's user avatar
-1 votes
1 answer
748 views

Xamarin.Forms - Android Activity with async OnCreate method

I'm running into the questions if it's a problem to mark FormsAppCompatActivity.OnCreate(Bundle bundle) as async? I have to fetch user-specific data from an AWS DynamoDB, and I need to retrieve the ...
zirkelc's user avatar
  • 1,461
1 vote
0 answers
323 views

Delete record from local storage using Akavache

I have a record that I store locally on the device and I have a button that deletes the record from local storage. When the user presses the button, this method is called and the record is removed ...
Euridice01's user avatar
  • 2,499