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
0
votes
0 answers

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, including a try/catch. The kicker is it all…
0
votes
0 answers

Akavache Exception calling BlobCache.LocalMachine

I've a new VS2017 Xamarin Forms project with the following: akavache 5.0.0 akavache.core 5.0.0 akavache.sqlite3 5.0.0 Xamarin.Forms 2.3.4.247 I've added Akavache to both my iOS and PCL projects and the ApplicationName is being set to the Bundle…
markpirvine
  • 1,485
  • 1
  • 23
  • 54
0
votes
2 answers

Akavache Sqlite linking errors

I am having an issue with SqlCipher and Akavache on iOS. When I add the Akavache library to my project with an existing implementation of SqlCipher I get a number of duplicate sqlite errors during linking. What is the current behavior? When I build…
Rodney Littles
  • 544
  • 2
  • 11
0
votes
0 answers

Akavache crashing android app

I'm using Xamarin.Forms and have this method to fetch my user object public static async Task GetCurrentUser() { try { return await…
Ada Orajiaku
  • 146
  • 1
  • 4
0
votes
1 answer

Csc/ CoreCompile fails for PCL/ Xamarin project

my Xamarin app doesn't build anymore since I added Akavache to it. Csc/ CoreCompile fails. If I remove Akavache, It builds fine. There aren't any errors, but I could find the following error in the output window: 8> Output Item(s):…
user3216381
  • 75
  • 1
  • 12
0
votes
1 answer

Mobile: Store images dowloaded from server in db (Akavache) or as file?

When I use Azure Storage and its Mobile SDK, blobs are stored as files on the device. Whereas when I read about Akavache it's say it's fast to store and access blobs. So if I display a list of images, is it faster to them from akavache in one…
François
  • 3,164
  • 25
  • 58
0
votes
0 answers

akavache "Unable to reset abort because no abort was requested"

I have a problem with akavache, when I try to put something on the blob, I have an error : "Unable to reset abort because no abort was requested" I see on the debugger that is Blob.LocalMachine value is : ThreadStateException "Unable to reset abort…
nicar
  • 157
  • 1
  • 14
0
votes
2 answers

Set Akavache BlobCache storage path other than default path

I have a requirement where I need to set the BlobCache path to other than default path's. By default its saving under below paths C:\Users\XXX\AppData\Local\AkavacheApp\BlobCache C:\Users\XXX\AppData\Roaming\AkavacheApp\BlobCache But I want it to…
Y Ravi
  • 9
  • 1
0
votes
2 answers

BlobCache.UserAccount cloud syncronize on Android

I am trying to understand BlobCache.UserAccount option using akavache. So far I could successfully implemented BlobCache.LocalMachine which works only offline. Accoridng to akavache documentation; Xamarin.iOS will may remove data, stored in…
Emil
  • 6,411
  • 7
  • 62
  • 112
0
votes
1 answer

Use data inside BlobCache.LocalMachine.GetObject("Key");

I am using xamarin.forms. I am trying to insert data in caches. var getData = JsonConvert.DeserializeObject(Respone); await BlobCache.LocalMachine.InsertObject("RsponseData",getData); And then I try to get cached data. var data =…
Ahmed Sayed
  • 465
  • 1
  • 7
  • 24
0
votes
1 answer

Akavache always calling the fetchFunc

I have the following code using Akavache in a Xamarin app and it's not behaving the way I would think it should. Probably my misunderstanding of how it should be but it's driving me crazy. So in my viewmodel I'm making the call to…
Richard Edwards
  • 1,379
  • 1
  • 17
  • 30
0
votes
1 answer

Akavache GetAndFetchLatest never fetches latest if a cached value exists

I'm trying to use the Akavache GetAndFetchLatest method in Xamarin.Forms project but it's not working as I expected and was hoping someone would be able to spot where I'm going wrong. I'm calling the method like…
0
votes
2 answers

How to ignore non-serializable properties from being cached using Akavache?

I have a custom class to be cached using Akavache. This class contains one non-serializable property (it's a ParseFile object). When I try to cache/get a list of this custom class using GetAndFetchLatest, it doesn't work. I figure it may be caused…
Nik A.
  • 454
  • 6
  • 15
0
votes
3 answers

ReactiveList.AddRange not working for large collections

I have a simple TableView that displays a list of strings downloaded from the network. The list is very large (~140k strings). Using AddRange and nothing is happening, but if I statically code a small 2-item list, it works fine. Code for reload…
Cory Juhlin
  • 364
  • 4
  • 9
-1
votes
1 answer

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 user from the Akavache cache before in order to…