← Back to Stormify Documentation

set

operator fun set(index: Int, element: T): T

Replaces the element at the given index in the cached page. This does NOT update the database — it only affects the in-memory view. The index must be within the currently loaded page.

Throws

if index is outside the cached page