DefaultQueryCache

Default query cache implementation.

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
open suspend override fun list(): List<Sudo>

Provide the list of sudos from this query cache.

Link copied to clipboard
open suspend override fun remove(item: Sudo)

Remove the associated sudo from the cache, sudo identity is based on unique id.

Link copied to clipboard
open suspend override fun replace(item: Sudo?)

Adds a new item or replace an existing item in this query cache.

Link copied to clipboard
open suspend override fun replaceAll(sudos: List<Sudo>)

Replace all sudos in the cache with the provided list.