famedly / matrix-dart-sdk

Matrix SDK written in pure Dart.
GNU Affero General Public License v3.0
62 stars 31 forks source link

introduce getSpaceHierarchy cache #1876

Open WilsonLe opened 3 months ago

WilsonLe commented 3 months ago

Describe your problem

With apps that call Api.getSpaceHierarchy often, it would be beneficial to have a built in cache of room hierarchy.

Describe your ideal solution

Introduce room hierarchy box in database cache

krille-chan commented 1 month ago

Actually I'm not sure. The hierarchy can also be cached by the app. When you use this endpoint the consumer would just expect to get the newest version. Such complexity with caching could be added to dozens of other endpoints as well which would blow up the sdk too much. But that's only my opinion. What do the others think? @famedly/instant-messaging