FeedCache

interface FeedCache

Persists the first page of each topic's feed so the app opens on the last-seen brief when it's offline or still loading, instead of a blank error screen. Only the first page is cached — deep pagination isn't worth persisting and always refetches online.

Inheritors

Functions

Link copied to clipboard
abstract fun load(topicKey: String): PageDto<PostDto>?
Link copied to clipboard
abstract fun save(topicKey: String, page: PageDto<PostDto>)