QueryCacheBuilder
interface QueryCacheBuilder
Builder for creating a query cache.
Functions
Link copied to clipboard
abstract fun <T, S> put(id: InfiniteQueryId<T, S>, data: QueryChunks<T, S>, dataUpdatedAt: Long = epoch(), dataStaleAt: Long = dataUpdatedAt, ttl: Duration = Duration.INFINITE)
Puts the infinite-query data into the cache.
abstract fun <T> put(id: QueryId<T>, data: T, dataUpdatedAt: Long = epoch(), dataStaleAt: Long = dataUpdatedAt, ttl: Duration = Duration.INFINITE)
Puts the query data into the cache.