addOrUpdate

open suspend override fun addOrUpdate(entity: T): T

adds or updates the serialized entity to localStorage using prefix and id defined in resource

Return

the added or saved entity

Parameters

entity

entity to add or update