Storage

interface Storage<T : @Serializable Any>

Interface to persist and retrieve Serializable object.

Parameters

T

The type of the object to be stored, which must be serializable.

Inheritors

Functions

Link copied to clipboard
abstract suspend fun delete()

Deletes the stored item.

Link copied to clipboard
abstract suspend fun get(): T?

Retrieves the stored item.

Link copied to clipboard
abstract suspend fun save(item: T)

Saves the given item.