Caching #26
Labels
No Label
bug
duplicate
easy
enhancement
help wanted
in progress
invalid
logic
next-week
priority enhancement
question
suggestion
ui
wontfix
No Milestone
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: beep/frontend_flutter#26
Loading…
Reference in New Issue
There is no content yet.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may exist for a short time before cleaning up, in most cases it CANNOT be undone. Continue?
There are two ways I think we can go about this.
The first way is to write a wrapper around the http.dart library, call it something like
cache_http
and use it as a way to generically cache any requests made through the http library. This custom wrapper version of the http library can be used in the resource classes where caching is required (conversations, contacts etc.)The second way is to write a superclass,
Cacheable
and so resource classes likeconversation_api_provider
will be subclasses of the superclass. Then, the superclass can use attribute access intercepting to cache method calls of the subclasses.I think the first way is easier to implement, but that's your call. Use any of these methods or anything else that you think works better.