Skip to content

Instantly share code, notes, and snippets.

@aleweichandt
Created Aug 17, 2021
Embed
What would you like to do?
Cache Interface example
interface ITodoCache {
// required for List<Todo> output
suspend fun getAllTodos(): List<Todo>?
suspend fun storeAllTodos(todos: List<Todo>)
suspend fun deleteAllTodos()
// required for Todo output
suspend fun getTodoById(id: Long): Todo?
suspend fun storeTodo(todo: Todo)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment