storeValue

inline fun <T : @Serializable Any> BoomerangStore.storeValue(key: String, value: T)(source)

Extension function for BoomerangStore that stores a serializable object of type T with the specified key.

This function serializes the object using Kotlinx Serialization before storing it in the BoomerangStore.

Parameters

T

The type of serializable object to store

key

The unique identifier for the stored value

value

The serializable object to store


inline fun <T : @Serializable Any> BoomerangStore.storeValue(value: T)(source)

Extension function for BoomerangStore that stores a serializable object of type T.

This function automatically uses the qualified name of type T as the key and serializes the object using Kotlinx Serialization before storing it in the BoomerangStore.

Parameters

T

The type of serializable object to store

value

The serializable object to store