scanPrefix
An ordered walk over every document whose key begins with prefix.
db.scanPrefix(Key.of("receipt/")).use { cursor ->
while (cursor.next()) println(cursor.key)
}Content copied to clipboard
The read half of the same idea as deletePrefix, and there for the same reason: a prefix is not a [from, to] range this API can express, and the range a caller writes instead returns one key too many. Delegates to DocumentStore.scanPrefix unchanged.