MutationCache

open external class MutationCache(config: MutationCacheConfig = definedExternally) : Subscribable<MutationCacheListener> (source)

Constructors

Link copied to clipboard
constructor(config: MutationCacheConfig = definedExternally)

Properties

Link copied to clipboard

Functions

Link copied to clipboard
open fun add(mutation: Mutation<*, *, *, *>)
Link copied to clipboard
Link copied to clipboard
open fun canRun(mutation: Mutation<*, *, *, *>): Boolean
Link copied to clipboard
open fun clear()
Link copied to clipboard
Link copied to clipboard
open fun findAll(filters: MutationFilters = definedExternally): ReadonlyArray<Mutation<*, *, *, *>>
Link copied to clipboard
open fun getAll(): ReadonlyArray<Mutation<*, *, *, *>>
Link copied to clipboard
open fun hasListeners(): Boolean
Link copied to clipboard
Link copied to clipboard
open fun remove(mutation: Mutation<*, *, *, *>)
Link copied to clipboard
Link copied to clipboard
open fun runNext(mutation: Mutation<*, *, *, *>): Promise<*>
Link copied to clipboard
open fun subscribe(listener: MutationCacheListener): () -> Unit