AndroidRetrostashStore

class AndroidRetrostashStore(context: ERROR CLASS: Symbol not found for Context, config: RetrostashOkHttpConfig = RetrostashOkHttpConfig()) : RetrostashStore

Android-specific RetrostashStore backed by:

  • Context.cacheDir/<config.cacheDirName>/ — payload files (one per cached entry).

  • SharedPreferences(<config.prefsName>) — JSON index of key → metadata.

Survives process restarts. Capped by RetrostashOkHttpConfig.maxEntries and RetrostashOkHttpConfig.maxBytes (LRU eviction). Thread-safe via internal monitor.

Constructors

Link copied to clipboard
constructor(context: ERROR CLASS: Symbol not found for Context, config: RetrostashOkHttpConfig = RetrostashOkHttpConfig())

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
open suspend override fun clear(): ERROR CLASS: Cannot infer argument for type parameter R
Link copied to clipboard
open suspend override fun get(key: String): ByteArray?
Link copied to clipboard
open suspend override fun invalidate(template: String)
Link copied to clipboard
open suspend override fun invalidateTag(tag: String)
Link copied to clipboard
open suspend override fun patch(key: String, payload: ByteArray, maxAgeMs: Long?, tags: Set<String>?)
Link copied to clipboard
open suspend override fun put(key: String, payload: ByteArray, maxAgeMs: Long, tags: Set<String>)