size() | Promise<number> | Get the dataset length |
get(index) | Promise<T | null> | Get the item at index |
getRange(startIndex, count) | Promise<T[]> | Get a range of items |
add(index, value) | Promise<boolean> | Insert an item at a specified position (clears cache on success) |
set(index, value) | Promise<boolean> | Overwrite the item at index (clears cache on success) |
setRange(index, endIndex, valueArray) | Promise<boolean> | Overwrite a range of items (clears cache on success) |
clearCache() | void | Clear the RN-side cache |
getCacheStats() | { cachedCount: number; totalSize: number } | Get cache stats |
preload(startIndex, count) | Promise<void> | Preload a range into cache |
isCached(index) | boolean | Whether an item is already cached |