save

open override fun save(id: String, obj: T)

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

Parameters

id

The unique identifier for the entity.

obj

The entity to save.

Throws

if no entity with the given ID exists.