Comments (11)
After some testing the issue is ReactiveObject, upon removing inheritation from ReactiveObject, then the cache is running just fine.
from akavache.
ReactiveObject has some quirks in regards to serialisation.
from akavache.
Almost all my domain object are inheriting ReactiveObject, so forth making it every single one not usable with the Akavache cache...
from akavache.
@glennawatson Any tip how to make this work? It seems like I would need to implement whole new layer for DTOs, that would get cached.
That would be Entity -> DTO -> Domain object
Which doesnt really makes sense, because all of the apps are WPF, accessing database directly via repository pattern on top of Entity framework, so the Entities are our DTOs.
Implementing DTOs would require to make huge infrastructure changes, since some entities are desired and some not to be cached.
The most reasonable thing is to cache normally ReactiveObject, but I am not sure where the issue lies in the first place.
from akavache.
If it was me I would use source generators to generate the dto at compile time so I'm not having to manually generate them all.
There are some serialisation hints in the docs that may help
One thing I can think of causing issues is Akavache uses the binary compiler by default.
from akavache.
https://www.reactiveui.net/docs/handbook/data-persistence/
from akavache.
I am aware of DTO generators, but for this project it doesnt make sense to map the entity 2 times, it is just excesive.
Binary compiler? Is there way for me to test out this theory? I went through source code briefly, but didnt find out what you mean
from akavache.
I am aware of this, i use it for the user preferences and settings, but I wanted to use Akavache for the temporary cache of some objects, that get loaded from db from time to time, but need to be refreshed 30-60 minutes.
I thought that it would be good idea to use Akavache, since it is from ReactiveUI, but it makes little to no sense, that it has problems with the main MVVM framework object of RxUI.
from akavache.
To complement, the issue is there not only on NET 5, but on NET 6 and all latest versions:
from akavache.
Oof, so, it seems like restarting the computer fixed the issue 😄 I will test out tomorrow and close the issue if that is the case
from akavache.
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
from akavache.
Related Issues (20)
- [BUG] App doesn't deploy when built with VS2022 HOT 3
- [BUG] in Android GetObject() returns empty after app restart when Blobcache.UserAccount is used HOT 2
- External Control of File Name or Path (Veracode CWE ID 73)
- DllNotFoundException: Unable to load DLL 'e_sqlite3' or one of its dependencies HOT 4
- [BUG] Xamarin.Android: InvalidateObject throws System.ArgumentNullException HOT 1
- [BUG] The type initializer for 'Akavache.BlobCache' threw an exception. on net6.0-windows10.0.22000.0 HOT 5
- [BUG] UTC time HOT 3
- GetObjects will hang if givin more than 64 keys HOT 1
- [Help wanted] Update expiration date HOT 3
- [BUG] GetOrFetchObject DateTime is getting retreived incorrectly from cache. (Minus 2 hours) HOT 2
- Documentation: How to use with .NET MAUI and DI HOT 1
- [BUG] Localmachine data is lost on every Android version increment or change HOT 5
- [Bug]: XamarinForms userblobs.db and MAUI HOT 4
- [Bug]: SqlRawPersistentBlobCache no valid operation queue in Xamarin.iOS .net 7 when link all set
- [Bug]: Xamarin.Forms v9.1.7 crashing UWP with the exception UnauthorizedAccessException Access to the path 'C:\Users' is denied. HOT 4
- [Bug]: MAUI iOS crashes in BlobCache.UserAccount.GetOrCreateObject on real device HOT 1
- Support for .net8/.net8-android HOT 1
- Dependency Dashboard
- [Bug]: `ForcedDateTimeKind` not working HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from akavache.