save

abstract suspend fun save(id: K, obj: T)

Saves (persists) an entity in storage under the given identifier.

Parameters

id

The unique identifier for the entity.

obj

The entity to save.